Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using SELECT TABLE.* (any problems with that?)
Message
From
30/01/2008 12:30:22
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01287154
Message ID:
01287168
Views:
9
There can be something wrong with SELECT * in some situations Naomi. If a new field is added to the table, it could slow down unecessary the query as more data is transfered and this extra data may not be needed in some places. On the worst scenario, it could crash the application if the new field is not added at the end (like if you binded a grid on the result of the SELECT *).

If you do your query against a store procedure, then it may be OK to do a SELECT * from VFP. But the store procedure should not use SELECT *.

>>I heard from someone or somewhere that you should not use select table.* and, instead should list all the fields.
>>
>>I'm about to it with select table1.*, table2.field1, table2.field2... where I do need all the fields from table1, about 27 of them.
>>Anyone have any input on this and if you should not do you have the reason?
>
>If you really need all the fields from Table1, then go for it. There is nothing wrong with Select Table1.*
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform