insert into workflow_auditing_user(order_id,menu_id,path_sn,state,user_id)
select @order_id,@form_id,b.node_sn,0,a.user_id from pub_user a,workflow_template_node b
where a.user_id in(b.node_users) and b.template_id=@template_id and node_num not in(0,-1) and b.node_id=@node_id
其中a.user_id in(b.node_users) 这个b.node_users是varchar型的,例如(3,4),他是存id值的,所以值都是数字加逗号,现在要怎么样才能把他转成整数型数组,现在这样in 提示不能将varchar类型转为int型,
select @order_id,@form_id,b.node_sn,0,a.user_id from pub_user a,workflow_template_node b
where a.user_id in(b.node_users) and b.template_id=@template_id and node_num not in(0,-1) and b.node_id=@node_id
其中a.user_id in(b.node_users) 这个b.node_users是varchar型的,例如(3,4),他是存id值的,所以值都是数字加逗号,现在要怎么样才能把他转成整数型数组,现在这样in 提示不能将varchar类型转为int型,
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货