How can I “select *” from a table in MySQL but omit certain columns?

后端 未结 9 1401
时光取名叫无心
时光取名叫无心 2020-12-03 11:43

I have a table with the following columns:

id,name,age,surname,lastname,catgory,active

Instead of: SELECT name,age,surname,lastname,c

9条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-03 12:03

    you can't do that, sorry. Actually you shouln't have done it if you could - specifying these things explicitly is always better, assume other developer adds new field and your application will fail

提交回复
热议问题