mysql 中存储过程使用游标问题,WHERE 后面是否可以使用CASE 5
如果只保留selectsubstring_index(b.ranomrec_id,'_',1)asranomrec_idfromtb_ranomrecbwhere(dat...
如果只保留
select substring_index(b.ranomrec_id, '_', 1) as ranomrec_id
from tb_ranomrec b where (date_format(b.createdate, '%Y')= substring('2016-12',1,4) and date_format(b.createdate, '%m') <= 6 )
是有数据的 展开
select substring_index(b.ranomrec_id, '_', 1) as ranomrec_id
from tb_ranomrec b where (date_format(b.createdate, '%Y')= substring('2016-12',1,4) and date_format(b.createdate, '%m') <= 6 )
是有数据的 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询