743
社区成员
发帖
与我相关
我的任务
分享
//把em_1的日期取出来,如
ls_riqi = em_1.text //假设em_1.text = "2008-11-28"
//然后与数据库中的数据比较
select top 1 1 into :li_test from tb where datediff(m,:ls_riqi,date_col)=0;
if sqlca.sqlnrows = 1 then
//存在该月的数据...
elseif sqlca.sqlcode = 100 then
//不存在该月数据...
end if