Home > Database > Mysql Tutorial > body text

How to solve mysql error 1054modify

藏色散人
Release: 2020-10-26 15:32:58
Original
4110 people have browsed it

The solution to mysql error 1054modify is to add quotation marks to the string, such as "insert into stock(code,name,b_price,s_price,num,rate,profit) values ​​​​(123,'qq',1 ).

How to solve mysql error 1054modify

Recommended: "mysql tutorial"

mysql 1054 error

Insert into the database An error is reported when inserting data. The data is inserted like this

[SQL] insert into stock(code,name,b_price,s_price,num,rate,profit) values (123,qq,1,2,100,2,10)
[Err] 1054 - Unknown column 'qq' in 'field list'
Copy after login

Solution:

Add quotation marks to the string

[SQL] insert into stock(code,name,b_price,s_price,num,rate,profit) values (123,'qq',1,2,100,2,10)
Copy after login

Affected data columns : 1

Time: 0.003ms

The above is the detailed content of How to solve mysql error 1054modify. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!