select a.it_id,case when a.jg is null or a.jg<b.dh then 9999 else a.jg end jg from 表1 a,表2 b where b.it_id=a.it_id(+)
[quote=引用 1 楼 js14982 的回复:] select a.it_id,case when a.jg is null or a.jg<b.dh then 9999 else a.jg end jg from 表1 a,表2 b where b.it_id=a.it_id(+)
17,377
社区成员
95,128
社区内容
加载中
试试用AI创作助手写篇文章吧