删除表记录并把ID清零的SQL语句

by zsk31. January 2010 20:56

 1、删除整个表


      DROP  TABLE   mytable

2、删除表中所有记录


     DELETE  FROM  mytable

3、删除所有表的数所有数据,保留结构、对象等的方法,标识列ID从0开始。



     TRUNCATE  TABLE  mytable

Tags: , ,

SQL

Add comment

  Country flag

biuquote
Loading

我的饭否

Widget RandomPosts not found.

The file '/blog/widgets/RandomPosts/widget.ascx' does not exist.X

RecentComments

Comment RSS

Google PageRank