SQL Truncate, Delete, Drop advise

后端 未结 6 1589
礼貌的吻别
礼貌的吻别 2021-01-15 03:17

I have a table in a SQL db that I want to remove the data from? I want to keep the columns though.

e.g. my table has 3 columns, Name, Age, Date. I don\'t want to rem

6条回答
  •  遥遥无期
    2021-01-15 04:15

    delete from TableName should do the trick

    DROPing the table will remove the colums too.

提交回复
热议问题