Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL SELECT * Question

Status
Not open for further replies.

PCX

Technical User
Dec 17, 2000
54
US
I hope this is not too much of a newbie question.

I saw in some examples in this forum the useage of the:

sqlString = "SELECT *"

Could someone explain (or refer me to a URL) what that is and how it works?

Is it a wild card for using the SQL statement or something else?

Thanks
 
Hi!

It means in this case to select all of the fields in the table for the query. If you have more than one table in the query then you need to specify Select Table1.* means select all of the fields from table 1.

hth
Jeff Bridgham
bridgham@purdue.edu
 
Hi, this is a wildcard for selecting all your fields in your table. While this might be a great shortcut, you can get into a speed issue if you have a lot of fields. It's better to call out only the fields that you really need.

HTH, John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top