为了账号安全,请及时绑定邮箱和手机立即绑定

数据库问题 请大佬帮忙解决 万分感谢

数据库问题 请大佬帮忙解决 万分感谢

社交恐惧症0 2018-09-04 16:04:32
将db2的函数转为mysql的函数CREATE OR REPLACE FUNCTION "DB2ADMIN"."GETASNOSBYPNOANDCNO" (pno varchar(10),cno varchar(1)) RETURNS table(as_nos varchar(2)) LANGUAGE SQL SPECIFIC SQL150907174255300 RETURN select as_nos from( select substr(as_nos,'1','1') as as_nos from mcm_xwprd_info where p_no=pno and ft_object=cno union select substr(as_nos,'3','1') as as_nos from mcm_xwprd_info where p_no=pno and ft_object=cno union select substr(as_nos,'5','1') as as_nos from mcm_xwprd_info where p_no=pno and ft_object=cno union select substr(as_nos,'7','1') as as_nos from mcm_xwprd_info where p_no=pno and ft_object=cno ) where as_nos !=''
查看完整描述

2 回答

  • 2 回答
  • 0 关注
  • 1239 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信