I’m trying to do SELECT * FROM tbl, but out of 20 columns I don’t want 1 particular column to be selected. Is there a dynamic way to do so? Just hate to specify 19 columns in the query!
I’m trying to do SELECT * FROM tbl , but out of 20 columns
Share
Just specify the columns. You should be doing that all the time anyway as select * is a very poor programming choice. I don’t know about mysql but in SQL Server I can drag all the columns over from the object browser and delete the ones I don’t want, it takes seconds. Perhaps the interface you use has a similar functionality.