select * from order where id = 1;

同学问我这句话有什么问题,乍一看真看不出毛病,后来发现order是mysql关键字,这样写是不对的,所以要加一个双引号才会更好一点

select * from `order` where id = 1;

 

相关文章:

  • 2022-03-05
  • 2021-11-17
  • 2022-12-23
  • 2021-08-25
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-19
  • 2021-11-01
  • 2022-12-23
  • 2022-01-20
  • 2022-03-05
  • 2022-12-23
相关资源
相似解决方案