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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting all columns except 3

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
I want to select all columns from a table, EXCEPT three, which are called &quot;id&quot;, &quot;name&quot;, and &quot;active&quot;.<br><br>I can't simply tell MySQL to select all the other columns, because I do not know beforehand how many columns there will be, or what they will be called.<br><br>Is there something like this that I can do?<br>&gt; SELECT * EXCEPT id, name, active FROM table
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top