2015-10-07 46 views
1

我創建了一個表中MySQL數據庫 '工資' 爲:在「字段錯誤代碼:1054在MySQL的

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

我收到提示

1054(未知列 '伊姆蘭'

insert into payroll.users SET userName=Imran:上下面的行代碼列表')

回答

1

Imran這個詞應該被'-s'封裝以標記它是一個字符串。

insert into payroll.users SET userName='Imran'