delete from t1 
where t1.id >312You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't1
where t1.id >100000' at line 1

解决方案 »

  1.   

    怎么会不支持?你仔细检查你的sql,主要看输入法什么的
      

  2.   

    哈哈,MYSQL比你想像的强大的多的多
      

  3.   

    没有问题啊,建议你贴你出错的语句,而不是自己再重新编造一个。mysql> select * from t1;
    +------+------+
    | id   | f1   |
    +------+------+
    |    1 |    1 |
    |    2 |    2 |
    |    3 |    3 |
    |    4 |    4 |
    +------+------+
    4 rows in set (0.00 sec)mysql> delete from t1
        -> where t1.id >3;
    Query OK, 1 row affected (0.09 sec)mysql> select * from t1;
    +------+------+
    | id   | f1   |
    +------+------+
    |    1 |    1 |
    |    2 |    2 |
    |    3 |    3 |
    +------+------+
    3 rows in set (0.00 sec)mysql>
      

  4.   

    delete from t1 
    where id >312 ;
    试试这个~~!!看行不???
      

  5.   

    使用:delete from t1 where `id` >3
      

  6.   

    MySQL 的 delete是绝对支持 where的
      

  7.   

    不加;mysql语句就不会执行呀!你的id是数值型的吗?
      

  8.   

       id看样子有可能是主键,最好设成整数型并自动增加(auto increment)。另外在命令行下myql中的所有SQL语句都要有分别结束,因为一个语句可能要占多行,你要键入一个多行语句,就要多次回车。可见mysql不能仅凭回车符来判断你的语句是否键入完毕,还需要一个分号符结尾。
      

  9.   

    没分号是不回提示syntax错误的。它会让你一直完成你的sql文为止,知道你加上分号!
    LZ绝对是输入法问题,因为sql文正确。
    也不是什么权限问题。
    建议重建个表,进行测试!