postgresql数据库使用随记

select count(*) from pg_class where relname = tableName ;
这里查询的tableName是区分大小写的。


select * from tableName order by columnName limit x offset y;
这里order by是必要的,否则每次查询结果可能会有变化

posted @ 2022-09-01 18:02  IAmSao瑞  阅读(23)  评论(0)    收藏  举报