刚才写了一个SQL 出现了这个错误 select * from v_draw_statistics_info where IS_STORAGED='1' and SEX='1' and DEPT_CODE='160000' and RES_CHECK_TIME ='2010-04-29'
在测试这条语句中发现 不加最后一个条件时sql运行正常 加上and RES_CHECK_TIME ='2010-04-29' 就出现了literal does not match format string 数据库中RES_CHECK_TIME 是datetime类型的
在线的请各位兄弟帮帮忙
在测试这条语句中发现 不加最后一个条件时sql运行正常 加上and RES_CHECK_TIME ='2010-04-29' 就出现了literal does not match format string 数据库中RES_CHECK_TIME 是datetime类型的
在线的请各位兄弟帮帮忙
select * from v_draw_statistics_info where IS_STORAGED='1' and SEX='1' and DEPT_CODE='160000' and RES_CHECK_TIME like('2010','YYYY') 也是错
在下不才 实在是左也是错 右也是错
select * from v_draw_statistics_info where IS_STORAGED='1' and SEX='1' and DEPT_CODE='160000' and to_char(RES_CHECK_TIME ,'yyyy') ='2010'
for(int i=0;i<100;i++) {
3Q;
}