2015-10-23 22 views
0
INSERT INTO `users` (`id`,`firstName`, `lastName` , `gender`, `address` , `phoneNumber`, `emailAddress`, `userName` , `password`) VALUES 
(1, `victor`, `Agbani`, `male`, `ajegunle`, `879889234`, `[email protected]`,`victo` ,`agbani`), 
(2, `Moses`, `Agogu`, `male`, `festac`, `879889235`, `[email protected]`, `mosko` ,`agogu`), 
(3, `John`, `Jude`, `male`, `mile2`, `879889236`, `[email protected]`, `johny` ,`jude`), 
(4, `Peter`, `Andrew`, `male`, `lagos`, `879889237`, `[email protected]`, `peto` ,`andrew`), 
(5, `Mathew`, `Mark`, `male`, `oyo`, `879889238`, `[email protected]`, `math` ,`mark`), 
(6, `James`, `Innocent`, `male`, `lafia`, `879889239`, `[email protected]`, `jamsy`, `innocent`), 
(7, `Paul`, `Animazu`, `male`, `ekiti`, `879889230`, `[email protected]`, `paulo`, `animazu`), 
(8, `Mary`, `John`, `female`, `kwara`, `879889231`, `[email protected]`,`maria`, `john`), 
(9, `Deborah`, `Agbolu`, `female`, `abuja`,`879889228`, `[email protected]`, `debo`, `agbolu`), 
(10, `Esther`, `Agabi`, `female`, `ondo`, `8798892229`, `[email protected]`, `esto`, `agabi`) 
+0

刪除'從第一行所有列 –

+0

瞭解反引號和單引號 –

回答

2

帶反引號的表名和列名。但隨着行情

INSERT INTO `users` (`id`,`firstName`, ...) 
VALUES (1, 'victor', ... 
      ^------^--------------here 
+0

之間的差異嚴格地說SQL標準的字符串指定的標識符雙引號。 – Neil

+0

謝謝。它現在有效...... – Stephen

相關問題