我不知道是什么错误,人家说MYSQL的WHERE后面不支持子查询所以有错误! delete from A where a like concat((select a from A where id = '1229'),'%');

解决方案 »

  1.   

    补充一下,错误是:
    ERROR 1093 (HY000): You can't specify target table 'A' for update in FROM clause
      

  2.   

    楼主想干什么?Try this:
    delete from A where id='1229';
      

  3.   

    你看不明白我的SQL语句是干什么吗?我只要把子查询的结果直接代进去是可以正常执行!!子查询单独执行都可以!!但把子查询放到那里就不可以了!
      

  4.   

    select a from A where id = '1229' into @b;delete from A where a like concat('''',@b,'%''');