select * from eastt21 where S18b="60.9"
有这个表
有这个列
有这个值
咋查询之后是空白呢?
单独查表或列都能查到
在 Table Designer 列的数据类型是 Character
以前没用过vf ,不知道那里出了问题,希望高手指教

解决方案 »

  1.   

    select * from eastt21 where alltrim(S18b)='60.9'select * from eastt21 where rtrim(ltrim(S18b)='60.9')
      

  2.   

    试了一把,这个才对.
    select * from eastt21 where substr(S18b,1,4)='60.9'
      

  3.   

    第一个好用
    第二个报错:Function argument value,type,or count is invalid.
      

  4.   


    这是vf特有的查询,S18B前后有空格是一定的,VF的表字符型字段,会被自动添加上相应的空格值,这个在SQL表中好象不会。第一条语句写法是对的。
    第二条语句的右括号打错了位置,正确的应该是:
    select * from eastt21 where rtrim(ltrim(S18b))='60.9'
      

  5.   

    改成 select * from eastt21 where rtrim(ltrim(S18b))='60.9'
    好用了
      

  6.   

    我第1天的数据date列为 2011-1-1
      第2天的数据date列为 2011-1-2
    以此类推 我第31天的数据date列为 2011-1-31
    表格如下
      date   x
    2011-1-1 a
    2011-1-1 b
    2011-1-2
    2011-1-3
    2011-1-4
    2077-1-31
    那么我有一年的数据,我想取一个月的数据改怎么做呢?
      

  7.   

    用OPenRowSet导入SQL后再操作吧。