When updating a record in MySQL, the syntax is correct, but the record is not updated... Question Statement The record before execution is as follows: The record after execution is as follows: As you can see, it actually works: why? It seems that there is no problem with the syntax. The update syntax of the MySQL official document is: Seeing that the format of assignment_list is a comma-separated list of Summary: In an UPDATE statement, if you want to update multiple fields, you cannot use "AND" between the fields, but should separate them with commas. Principle: Why does the strange result of owner_code=0 appear when "AND" is used to separate? After many attempts, I found that: And This is the end of this article about the syntax of mysql update to modify multiple fields and. For more relevant mysql update to modify field and syntax content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: vue front-end HbuliderEslint real-time verification automatic repair settings
>>: Detailed analysis of each stage of nginx's http request processing
Purpose: 1. In order to map the server's exte...
1. Introduction A few days ago, a development col...
Original article, please indicate the author and ...
This article uses examples to describe the basic ...
Copy code The code is as follows: <frameset co...
1. Install JDK 1. Uninstall the old version or th...
RGBA is a CSS color that can set color value and ...
Last week, the teacher gave me a small homework, ...
Table of contents 1. Comments on MySQL primary ke...
This article example shares the specific code of ...
Table of contents Overview What is lazy loading? ...
This article example shares the specific code of ...
Install axios and implement communication Here we...
Problem phenomenon: [root@localhost ~]# docker im...
Just as the title! The commonly used font-family l...