create table t(
         id int (primary key) --primary key 表示关键字
)

解决方案 »

  1.   

    --是这个嘛?select * from 表 where 字段 not like '%内容%'
    select * from 表 where charindex('内容',字段)=0
    select * from 表 where patindex('%内容%',字段)=0
      

  2.   

    字段的内容为"006.***",表示的是某一大工程,,如果是‘005.***’或‘003.***’就不是大工程,现在大工程的不结算,我查询的时候就不想包括‘006.’,即不包含,如果写!=‘006.***’,就不起作用,总是这个地方偶忘了,怎么写,不会是uninclude吧
      

  3.   

    select * col from table where substring(col,1,3)='0.06'