我是mysql db编程的新手,我无法弄清楚我正在执行的mysql insert语句中的错误是什么。 MySql Query浏览器出错:SQL语法错误。
我的数据库表的结构:
命令:
insert into mail_client.inbox ( to , from , subject , date , message , uuid )
values ( "fdfgmail.com" , "fromgmail.com" , "subj" , "2016-06-06" , "hello" ,
"0757c2666e934e2eb303df68bb3c9722" );
答案 0 :(得分:1)
将反引号添加到保留名称字段:
`insert into mail_client.inbox ( `to` , `from` , subject , `date` , message , uuid ) values ( "fdfgmail.com" , "fromgmail.com" , "subj" , "2016-06-06" , "hello" , "0757c2666e934e2eb303df68bb3c9722" );`