有时候我们给表或者字段命名时,会无意中选择了一个SQL中的关键字进行命名,然后就报错了:
ERROR: syntax error at or near "limit"
create table `order` (id int, `limit` int); # 由于order和limit都是MySQL中的关键字,必须加上``才能使用
create table "order" (id int, "limit" int); # 由于order和limit都是PostgreSQL中的关键字,必须加上""才能使用
原文:https://www.cnblogs.com/ryanzheng/p/9350259.html