gpt4 book ai didi

mysql - 存储过程如何返回值

转载 作者:行者123 更新时间:2023-11-29 19:11:33 25 4
gpt4 key购买 nike

CREATE PROCEDURE deleteDealer 
(**In dealerCode Varchar(100),In userId VARCHAR(100**))
BEGIN
`UPDATE tbl_dealer SET status='INACTIVE' where dealerCode=dealerCode';
`UPDATE tbl_dealer_contact SET status='INACTIVE' where dealerCode=dealerCode';
'UPDATE tbl_login set status='INACTIVE' where userId=userId';


END;

这是我如何返回 bool 值的程序任何人都可以快速回答我

最佳答案

CREATE PROCEDURE deleteDealer 
(**In dealerCode Varchar(100),
In userId VARCHAR(100**))
BEGIN
`UPDATE tbl_dealer SET status='INACTIVE' where dealerCode=dealerCode';
`UPDATE tbl_dealer_contact SET status='INACTIVE' where dealerCode=dealerCode';
'UPDATE tbl_login set status='INACTIVE' where userId=userId';


SELECT 1;

END;

关于mysql - 存储过程如何返回值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43040297/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com