Forum Moderators: phranque
If you specify the columns you require, then you've got a more optmised application.
My thoughts....
JP
Then, to avoid endless typing, you can refer to the columns by their position number in the query:
Select name, password from users order by 1
rsNames(1)
etc.
ACK, don't use position numbers! If you happen to change your query, you then have to go through double checking numbers, etc Use the column name, it's much safer
Its also slower! By referring to column names, then there is an extra call where the corresponding database column number is checked for, before it retrieves the information from the correct column. If you're trying to build an application for speed, to handle the largest possible number of users, refer to the columns by number.
If you change your query, you only have to go through the script once making the necessary corrections.
JP