ZD1001
002
003
004
005
006
...
999int n=2请教删除尾数为n 的sql语句

解决方案 »

  1.   

    delete from table where right(列名,1)=2
      

  2.   

    delete from table where right(ZD1,1)=n
      

  3.   

    delete T 
    where right(ZD1, 1)='2'
      

  4.   

    delete from yourTable where ZD1 like '%2'
      

  5.   

    "delete from table where right(ZD1,1)='"+n.ToString()+"'"
      

  6.   

    如果字段类型是字符串、二进制字符串、text、image、列或包含列的表达式
    可以用这个select  *  from 表名 where substring(ZD1,len(ZD1),1)='n'
      

  7.   

    delete from tablename where right(colname,1)=2