Select all columns except one in MySQL?

后端 未结 30 3419
后悔当初
后悔当初 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:07

    I have a suggestion but not a solution. If some of your columns have a larger data sets then you should try with following

    SELECT *, LEFT(col1, 0) AS col1, LEFT(col2, 0) as col2 FROM table
    

提交回复
热议问题