select * from 运单资料库 where  散客=是
出错提示:列名 "是" 无效
为什么?

解决方案 »

  1.   

    select * from 运单资料库 where  散客='是'
      

  2.   

    直接设计写
    select * from 运单资料库 where  散客='是'
    代码中写
    select * from 运单资料库 where  散客=''是''如果还不行,那就是因为'是'是关键字,不能这么判断.
      

  3.   

    值要用''号括起来,没有''括的SQL认为是字段名称;如果直接使用的:select * from 运单资料库 where  散客='是'
    如果通过程序:'select * from 运单资料库 where  散客=''是''';