码迷,mamicode.com
首页 > 数据库 > 详细

mysql sql delete别名问题

时间:2014-11-20 15:44:18      阅读:203      评论:0      收藏:0      [点我收藏+]

标签:mysql   delete 别名   

MYSQL的delete语句不支持别名!要使用别名需要在delete后也使用别名

如:

     delete from test t where t.id in (1,2);(执行失败)

    

     select t.* from test t where t.id in (1,2);(执行成功)


mysql sql delete别名问题

标签:mysql   delete 别名   

原文地址:http://yinzheyihao.blog.51cto.com/2100950/1579996

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!