Select all columns except one in MySQL?

后端 未结 30 3430
后悔当初
后悔当初 2020-11-22 00:46

I\'m trying to use a select statement to get all of the columns from a certain MySQL table except one. Is there a simple way to do this?

EDIT: There are 53 columns i

30条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-22 01:26

    I agree with @Mahomedalid's answer, but I didn't want to do something like a prepared statement and I didn't want to type all the fields, so what I had was a silly solution.

    Go to the table in phpmyadmin->sql->select, it dumps the query: copy, replace and done! :)

提交回复
热议问题