Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using SELECT TABLE.* (any problems with that?)
Message
De
30/01/2008 12:30:22
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01287154
Message ID:
01287168
Vues:
10
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.*
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform