您的位置:首页 > 数据库 > MySQL

mysql error -- 1415 not allowed to return a result set from a trigger

2010-04-10 23:37 543 查看
在mysql的trigger和function中不能出现select * from table形式的查询,因为其会返回一个结果集;而这在mysql的trigger和function中是不可接受的,但是在存储过程中可以。在trigger和function中可以使用select ... into ...形式的查询。

相关讨论:http://forums.mysql.com/read.php?99,108159,108159#msg-108159
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐