SQL Server中RAISERROR在MySQL中的等价物是什么?
CREATE procedure GetallFiles()
as
begin
if not exists(select files.Files,Users.FirstName,Users.LastName,Users.EmailAddress from files,Users
where files.UserID = Users.UserID)
raiserror('cannot find files records',16,1)
end
begin
select files.Files,Users.firstname,Users.lastname,Users.EmailAddress from files,Users
where files.UserID = Users.UserID
end
return发布于 2017-11-17 20:01:43
SET @s = 'Unknown condition type !';
SIGNAL SQLSTATE '45001' SET MESSAGE_TEXT = @s;https://stackoverflow.com/questions/38924116
复制相似问题