sun-2020-8

使用insert语句

INSERT INTO read (id, ana_like_number, read_like_number, recommend_desc, book_name, author, read_response, create_time ) VALUES ( `1433232702867484674`, `0`, `0`, `fghh`, `31231`, `2413`, `gfh`, `2021-09-02 08:57:59.11`);

 

发生了如下错误

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'read  ( id,

 

仔细核对了语法、数据格式后,发现没有任何问题,后来才发现这个在表名“read”上加个双引号就好了,究其原因,就是read是mysql关键字

分类:

技术点:

相关文章:

  • 2021-11-18
  • 2021-05-28
  • 2021-11-22
  • 2021-09-29
  • 2021-12-31
  • 2021-09-29
  • 2021-05-24
猜你喜欢
  • 2021-07-25
  • 2021-12-14
  • 2021-04-07
  • 2022-02-07
  • 2021-11-09
  • 2021-08-23
  • 2021-08-07
相关资源
相似解决方案