像我这样是可以的:
CREATE PROCEDURE sp_add(a int, b int,out c int)
begin
set c=a+ b
end
调用过程:
call sp_add (1,2,@a)
select @a
select * from table1 a inner join table2 b on a.id=b.id where 需要查询的内容修改则是
update table set field =xx where id = (select id from table2 where )
或
update table set field =xx where id in (select id from table2 where )
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)