返回首页

gbase数据、南大通用产品文档:GBase8aDAYOFWEEK(date)

更新日期:2024年09月11日

函数说明
返回date (1 = 周日, 2 = 周一, ..., 7 = 周六)对应的工作日索引。
示例
示例1:“2020-08-30”是周日,返回对应的工作日索引为1。
gbase> SELECT DAYOFWEEK('2020-08-30') FROM dual;
+-------------------------+
| DAYOFWEEK('2020-08-30') |
+-------------------------+
|
1 |
+-------------------------+
1 row in set

获得当前节点表、索引等文件的读取失败信息。
名称
类型
描述
nodename
text
数据库进程名称。
databaseid
integer
database 的oid。
tablespaceid
integer
tablespace 的oid。
relfilenode
integer
relation 的file node。
bucketid
smallint
一致性hash bucket ID。
forknum
integer
fork 编号。
error_count
integer
error 的数量。
first_time
timestamp with time z
one
坏块第一次出现的时间。
last_time
timestamp with time z
坏块最后出现的时间。

GBase 8c V5 开发者手册
南大通用数据技术股份有限公司
987
名称
类型
描述
one

GBase 8c 提供两种方式返回数据:RETURN 或RETURN NEXT 及RETURN QUERY。
其中,RETURN NEXT 和RETURN QUERY 只适用于函数,不适用存储过程。