sql总是提示有语法错误,
lcSql="selecthp_zd01.zgbh,hp_zd01.zgxm,hb_jbxx.tsbh,hb_jbxx.mc,hb_jyxx.jyrq,hb_jyxx.y...
lcSql = "select hp_zd01.zgbh,hp_zd01.zgxm,hb_jbxx.tsbh,hb_jbxx.mc,hb_jyxx.jyrq,hb_jyxx.yhrq" + ;
"from hb_jyxx left join hb_jbxx on hb_jyxx.tsbh = hb_jbxx.tsbh"+;
"left join hp_zd01 on hp_zd01.zgbh = hb_jyxx.zgbh" + ;
"where hb_jyxx.yhrq < '&lcdate' And hb_jyxx.ghrq is null"
left 附近有语法错误 展开
"from hb_jyxx left join hb_jbxx on hb_jyxx.tsbh = hb_jbxx.tsbh"+;
"left join hp_zd01 on hp_zd01.zgbh = hb_jyxx.zgbh" + ;
"where hb_jyxx.yhrq < '&lcdate' And hb_jyxx.ghrq is null"
left 附近有语法错误 展开
2个回答
展开全部
lcSql = "select hp_zd01.zgbh,hp_zd01.zgxm,hb_jbxx.tsbh,hb_jbxx.mc,hb_jyxx.jyrq,hb_jyxx.yhrq from hb_jyxx left join hb_jbxx on hb_jyxx.tsbh = hb_jbxx.tsbh left join hp_zd01 on hp_zd01.zgbh = hb_jyxx.zgbh where hb_jyxx.yhrq < '" & lcdate & "' And hb_jyxx.ghrq is null"
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询