#openGauss #入门 #安装 #数据库 #开源
知识来源:docs-opengauss.osinfra.cn/zh/
-
trunc(timestamp)
描述:默认按天截取。
示例:
sql复制代码openGauss=# SELECT trunc(timestamp '2001-02-16 20:38:40'); trunc --------------------- 2001-02-16 00:00:00 (1 row)
#openGauss #入门 #安装 #数据库 #开源
#openGauss #入门 #安装 #数据库 #开源
知识来源:docs-opengauss.osinfra.cn/zh/
trunc(timestamp)
描述:默认按天截取。
示例:
sql复制代码openGauss=# SELECT trunc(timestamp '2001-02-16 20:38:40'); trunc
---------------------
2001-02-16 00:00:00
(1 row)
#openGauss #入门 #安装 #数据库 #开源