Home  >  Article  >  Database  >  MySQL5.5 delete表连接语法改变

MySQL5.5 delete表连接语法改变

WBOY
WBOYOriginal
2016-06-07 17:40:53796browse

在MySQL5.5里,规范了sql语句表连接的写法。deleteusera,user2bfromuserajoinuser2bona.id=b.id;这样写在MySQL5.1里,可以正常执行,..

在MySQL5.5里,规范了sql语句表连接的写法。

  • 这样写在MySQL5.1里,香港服务器,可以正常执行,但在MySQL5.5里就报错,下面是一个测试:

    可以看到,执行时报错。那么规范后的写法是: 

  • 参考手册:

     

    本文出自 “贺春旸的技术专栏” 博客,网站空间,香港服务器,请务必保留此出处

  • Statement:
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn