select a.*,a.rowid from sys_order a where 1=1
and (case when a.order_type in ('01', '02') then
a.phone_num
else
a.staff_phone
end)= '123456789'
select a.*,a.rowid from sys_order a where 1=1
and (case when a.order_type in ('01', '02') then
a.phone_num
else
a.staff_phone
end)= '123456789'
1万+

被折叠的 条评论
为什么被折叠?