Let us say, if a database table (not in Access, but in Sybase) has 3 fields (Field #1: ABC; Field #2: LMN; Field #3: XYZ).
If I use Select * From Table_name and copy the whole table to a excel spreadsheet, it turns out that field order is exactly correct: Column A is ABC; Column B is LMN; Column C is XYZ.
But to be safe, I prefer to use Select ABC, LMN, XYZ From Table_name, which should guaranteed the output result is in the order I expect (in case DBA modifies the field order in the database).
Comparing the two ways to pull data from server, is there any big difference? I mean code efficiency difference. Will second method take much longer?
In reality, the table has more than 40 fields, I need to pull 35 fields into excel spreadsheet. Is it a good idea to list all the 35 field names in Select statement? I don't mind to list them, since it is only one time deal, but my concern is more about code efficiency difference. Should I just copy the whole table from Sybase to Excel spredsheet first, then delete those columns from Excel spreadsheet? Or should I only copy those 35 fields into Excel sheet?
Code efficiency is my main concern.
Thanks.