楼主是想复制符合条件记录么?这样:
INSERT into t1(c1, c2) select c1,c2 from t1 where c1=100 and c2 =11

解决方案 »

  1.   

    或者試試這樣可以嗎
       
    IF (Select Count(*) From t1 Where c1=100 and c2 =11)=0
    Insert Into t1(c1, c2) VALUES (100,11)
      

  2.   

    MYSQL低版本不支持复合查询,好像是要4.1以上吧
      

  3.   

    http://www.zdnet.com.cn/developer/code/story/0,2000081534,39186100,00.htm
    借楼主的宝坻用一下:
    谁帮我看看这个count 函数是怎么回事??
    那个结果是怎么运行出来的??
    谢谢!!