论坛


2019年12月1日 星期日

PostgreSQL 常用SQL 函数操作 - xalion

xalion| 博客园_Delphi 窑洞 |11:40:00

1. 查询服务器当前时间及日期 select now(); 取当前日期及时间 select current_time; select current_date; select extract(YEAR from now()); 取当前日期的年 select extract(month from no

PostgreSQL 基本数据类型及常用SQL 函数操作 - xalion

xalion| 博客园_Delphi 窑洞 |11:40:00

数据类型 名字别名描述 bigint int8 有符号的8字节整数 bigserial serial8 自动增长的8字节整数 bit [ (n) ] 定长位串 bit varying [ (n) ] varbit 变长位串 boolean bool 逻辑布尔值(真/假) box 平面上的普通方框 b