How to delete all rows from all tables in a SQL Server database?

前端 未结 11 1192
遇见更好的自我
遇见更好的自我 2020-11-29 15:12

How to delete all rows from all tables in a SQL Server database?

11条回答
  •  旧时难觅i
    2020-11-29 15:27

    if you want to delete the whole table, you must follow the next SQL instruction

    Delete  FROM TABLE Where PRIMARY_KEY_ is Not NULL;
    

提交回复
热议问题