参数传入任意值都会被删除?
3为什么3,输入任意的id都会被删除吗?
DELIMITER //
CREATE PROCEDURE removeUserById(IN id INT UNSIGNED)
BEGIN
DELETE FROM user WHERE id = id;
END
//
DELIMITER ;
CALL removeUserById(3);
3为什么3,输入任意的id都会被删除吗?
DELIMITER //
CREATE PROCEDURE removeUserById(IN id INT UNSIGNED)
BEGIN
DELETE FROM user WHERE id = id;
END
//
DELIMITER ;
CALL removeUserById(3);
2017-01-04
举报