简体   繁体   中英

Error Code: 1054 in mySQL

I created a table in mySQL database 'payroll' as:

CREATE TABLE `users` (
`userName` varchar(15) NOT NULL,
`password` varchar(15) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

I'm getting error

1054(Unknown column 'Imran' in the 'field list')

on following line of code:

insert into payroll.users SET userName=Imran

Imran单词应该用'-s封装,以表示它是一个字符串。

insert into payroll.users SET userName='Imran'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM