关于PB8.0+ACCESS数据查询的问题
本人曾用ORACLE+PB8.0编写动态查询语句,语句为:
cc="select id,no from check_data where to_char(check_time,'yyyymmddhhmmss')>='"+b1+"' and to_char(check_time,'yyyymmddhhmmss')<='"+b2+"'"
b1为string型,为什么此语句用到数据库为access时就不行了?(check_time为datetime型)
在把b1换为datetime型时,也不能查询。