TB 
ID,COL1 
1,1
2,' '
3,''
select COL1 from TB where COL1 =' 'Result:2,''
3,''

解决方案 »

  1.   

    declare @TB table(ID int,COL1 varchar(10))
    insert @TB select 1,1
    union  all select 2,' '
    union  all select 3,''--查询
    select * from @TB where COL1=' ' and datalength(COL1)=datalength(' ')/*--结果:ID          COL1       
    ----------- ---------- 
    2            (所影响的行数为 1 行)
    --*/
      

  2.   

    这个就可以了
    select * from TB where ASCII(COL1) = ASCII(' ')哈哈,简单的东西想不到,要用复杂的,唉