delete from t
or
truncate table t

解决方案 »

  1.   

    delete from t --记录日志
    truncate table --不记录日志,所以速度比上面的快
      

  2.   

    truncate table tablename    '速度快
      

  3.   

    delete from tablename [where ....]
      

  4.   

    如果不需要有日志用truncate table tablename 速度快

    delete from tablename 有日志记录的删除
      

  5.   

    truncate table tablename    '速度快
      

  6.   

    delete from t --记录日志;不能重置种子
    truncate table --不记录日志,所以速度比上面的快;可以重置种子