select je into :ld_je from table1 where fsrq=:ls_rq;
我用该语句查询不到数据,为什么?
但是用select je into :ld_je from table1 where fsrq=#2005-05-01#;却可以查到数据,请问我在程序中该如何使用日期变量做条件查询?
...全文
1113打赏收藏
access数据中用sql语句查询,有关以日期做条件的问题。
string ls_rq ls_rq='#2005-05-01#' select je into :ld_je from table1 where fsrq=:ls_rq; 我用该语句查询不到数据,为什么? 但是用select je into :ld_je from table1 where fsrq=#2005-05-01#;却可以查到数据,请问我在程序中该如何使用日期变量做条件查询?