MySQL5.5 delete table connection syntax change

Source: Internet
Author: User

MySQL5.5 standardizes the writing of SQL statement table connections.

 
 
  1. delete user a,user2 b from user a join user2 b on a.id=b.id; 

This code can be written in MySQL5.1 and executed normally, but an error is reported in MySQL5.5. The following is a test:

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131229/19222K112-0.png "alt =" "/> 650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131229/19222GM6-1.png "alt =" "/>

As you can see, an error is reported during execution. The following code is used:

 
 
  1. delete a,b from user a join user2 b on a.id=b.id; 
650) this.width=650;" border="0" src="http://www.bkjia.com/uploads/allimg/131229/19222JT4-2.png" alt="" />

Reference manual:

650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131229/19222M414-3.jpg "/>

 

This article is from the "hechun's technical column" blog, please be sure to keep this source http://hcymysql.blog.51cto.com/5223301/1009331

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.