我想把表中的一列内容作为dropdownlist的内容,假如这列是:
湖北
湖南
北京
null
null由于有2个null,所以我的dropdownlist的下拉框就会有2个空白,所以我想通过sql语句来把非null的值给选出来,最好是根据是否为null来筛选,表名为province,列名为abc请各位大侠帮帮忙!

解决方案 »

  1.   

    where abc is not null
      

  2.   

    SELECT * FROM PROVINCE WHERE ABC IS NOT NULL
      

  3.   

    select * from province where abc is not null
      

  4.   

    select * from tb where col is not null
      

  5.   

    晕死了,这个帖子怎么重复发了。。select a from table1 where a is not null
      

  6.   


    select isnull(abc,'空值') from province
      

  7.   


    select * from province where abc is not null
      

  8.   

    select * from province
    where abc is not null
      

  9.   

    select abc from province
    where abc is not null