作业帮 > 综合 > 作业

在应使用条件的上下文(在 'and' 附近)中指定了非布尔类型的表达式.

来源:学生作业帮 编辑:搜狗做题网作业帮 分类:综合作业 时间:2024/05/01 14:03:26
在应使用条件的上下文(在 'and' 附近)中指定了非布尔类型的表达式.
select m1.Cus_no,m1.ord_no into #ordm1 from les_jm_ordm m1 (nolock) where m1.cus_no like '2001D02900' and m1.gh is not null and ( select ord_no from les_ordm where order_ys='2014' and client like '2001D02900' or substring(m1.ord_dt,1,4)='2014' ) and m1.pda_dt is not null
在应使用条件的上下文(在 'and' 附近)中指定了非布尔类型的表达式.
where 关键字后面 应该跟的是一个判断语句
而你现在括号里的是一个查询语句
可以这样改:
***
where exists (select customer
***
再问: 谢谢 问题已处理 分给你了