瀚高数据库中尽量不要使用关键字作为对象名称
我们可以使用以下命令查看是否存在关键字列名:
select distinct table_name,column_name from information_schema.columns
where table_schema='模式名'
and lower(column_name) in(select word from pg_get_keywords());
查看有无大写的列名:
select distinct table_name,column_name from information_schema.columns
where table_schema='模式名'
and ascii(left(column_name,1)) between 65 and 90;