truncate.test
上传用户:tsgydb
上传日期:2007-04-14
资源大小:10674k
文件大小:0k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. #
  2. # Test of truncate
  3. #
  4. create table t1 (a integer, b integer,c1 CHAR(10));
  5. truncate table t1;
  6. select count(*) from t1;
  7. insert into t1 values(1,2,"test");
  8. select count(*) from t1;
  9. drop table t1;
  10. # The following should fail
  11. !$1146 select count(*) from t1;