当我执行此查询时,我收到此错误消息“错误代码:1172。结果包含多个行”
CREATE DEFINER=`root`@`localhost` PROCEDURE `un_follow`(
user_been_following_id int,
user_following_id int
)
BEGIN
declare id int;
select following_id into id from user_following
where user_been_following_id = user_been_following_id
and user_following_id = user_following_id;
delete from user_following
where following_id = id;
END
id 是下表的主键有帮助吗?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号