How to select Column value as Column name with conditions in SQL table

后端 未结 3 1017
小鲜肉
小鲜肉 2020-12-20 01:21

I\'m new to SQL. I have a table \'Customers\' and it looks like this.

\"enter

3条回答
  •  眼角桃花
    2020-12-20 01:43

    You can use SHOW COLUMNS FROM Customers to get the name of the columns

    Then just use SELECT * FROM Customers to retrieve the data

提交回复
热议问题