Quantcast
Channel: Planet MySQL
Viewing all articles
Browse latest Browse all 18766

select *,colname | select colname,* that is the question

$
0
0

Strangely enough, select *,colname from tbname; works just fine, whereas select colname,* from tbname; fails! So if you would like to see all columns, but have one or more of them displayed to the left of the set, you have only one way left to do it ‘comfortably’:

select colname,tbname.* from tbname; well two really but this is really the same
select colname,tb.* from tbname tb;

Because Sharing is Caring


PlanetMySQL Voting: Vote UP / Vote DOWN

Viewing all articles
Browse latest Browse all 18766

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>