存储过程中SQL的in的内容为入参,在线等
CREATEORREPLACEPROCEDURExxx(aINCHAR)ASBEGININSERTINTOabcSELECT*fromdefWHEREghin(a);CO...
CREATE OR REPLACE PROCEDURE xxx(
a IN CHAR
)
AS
BEGIN
INSERT INTO abc SELECT * from def WHERE gh in (a);
COMMIT;
END;
请问入参a怎么传才能相当于 INSERT INTO abc SELECT * from def WHERE gh in ('a','b','c');呢? 展开
a IN CHAR
)
AS
BEGIN
INSERT INTO abc SELECT * from def WHERE gh in (a);
COMMIT;
END;
请问入参a怎么传才能相当于 INSERT INTO abc SELECT * from def WHERE gh in ('a','b','c');呢? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询