DELETE from xxx where A1<>'皮衣' OR A1='大衣'

解决方案 »

  1.   

    delete A1 from table not exsit 皮衣,大衣
      

  2.   

    我最早的写法和" kimryo("是一样的
    结果把所有记录都删了 
      

  3.   

    DELETE from xxx where A1<>'皮衣';那就说明你的记录里没有等于皮衣的
      

  4.   

    我试过了,可以的。。这样写吧。。上面是随便写的。DELETE * FROM TABLE1
    WHERE NOT EXISTS (select a1  from  table where a1='大衣  or a1='皮衣')
      

  5.   

    DELETE  FROM netdhspb
    WHERE NOT EXISTS (select a1  from  netdhspb where a1='V领装饰男套衫'  or a1='半高领装饰男套衫')
    (所影响的行数为 0 行)
    不起作用!!
      

  6.   

    DELETE from xxx where not (A1='皮衣' OR A1='大衣')
      

  7.   

    DELETE from xxx where A1<>'皮衣' and A1<>'大衣'
      

  8.   

    delete from table_name where A1 not in ('皮衣', '大衣')
      

  9.   

    DELETE from xxx where A1<>'皮衣' and A1<>'大衣',最简单易懂的方法
      

  10.   

    delete from xxx where A1 not in('皮衣','大衣')
      

  11.   

    你们都是乱害人,我安装你们的方法去试了试
    delete from xxx where A1<>'皮衣' 
    靠,你们猜,怎么了,所有记录全被删除。
    如果别人有什么重要数据,那不是要倒霉了。
      

  12.   

    正确的写法是
    delete * from 表名 where A1<>'皮衣' or A1<>'大衣'
    我已经验证过了。
      

  13.   

    删除之前用select 看看不就可以了吗?select * from *** where where not (A1='皮衣' OR A1='大衣')另外是不是你的数据是'皮衣 '而不是'皮衣' 这样的不一定是语句有问题噢
      

  14.   

    楼上你的写法肯定是错误的
    因为 A1<>'皮衣' or A1<>'大衣' 恒真
      

  15.   

    DELETE from xxx where A1<>'皮衣' and A1<>'大衣'