eX
tremeDB中没有TO_VARCHAR函数,但是有一个类似功能的函数 FORMAT。其用法如下所示(
eX
tremeDB区分字母大小写):
-
XSQL>create table t(dt timestamp);
-
XSQL>insert into t values (now);
-
XSQL>select * from t;
-
dt
-
------------------------------------------------------------------------------
-
-
Wed Mar 4 09:37:28 2015
-
Selected records: 1
-
XSQL>select format('%Y-%m-%d', dt) from t;
-
#1
-
------------------------------------------------------------------------------
-
2015-03-04
-
-
Selected records: 1
阅读(473) | 评论(0) | 转发(0) |