TBase
AntDB
substr
支持
支持
sign
支持
支持
sinh
支持
支持
tanh
支持
支持
cosh
支持
支持
trim
支持
支持
coalesce
支持
支持
extract
支持
支持
greatest
支持
支持
last_day
支持
支持
least
支持
支持
length
支持
支持
lnnvl
支持
支持
max
支持
支持
min
支持
支持
mod
支持
支持
month_between
支持
支持
to_yminterval
支持
支持
nullif
支持
支持
numtodsinterval
支持
支持
numtoyminterval
支持
支持
round_date
支持
支持
to_timestamp
支持
支持
rpad
支持
支持
to_single_byte
支持
支持
sessiontimezone
支持
支持
to_date
Tbase to_date
函数对月份解析有错误;
tbase=# SELECT TO_date('January 15, 2010, 11:00 P.M.','Mon dd, YYYY, HH:MI P.M.') FROM DUAL;
ERROR: invalid value "ar" for "dd"
DETAIL: Value must be an integer.
支持
to_date+to_dsinterval
TBase
计算错误,正确值应该是
2016-01-04 14:20:50
;
postgres=# select to_date('1-3-2016 10:30:00','MM-DD-yyyy hh:mi:ss') + to_dsinterval('1 3:50:50') as ndate from dual;
ndate
---------------------
2016-01-04 03:50:50
(1 row)
支持
soundex
TBase
不支持
soundex
函数;
tbase=# select soundex('moon') from dual;
ERROR: function soundex(unknown) does not exist
LINE 1: select soundex('moon') from dual;
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
支持
sys_extract_utc
TBase
不支持
sys_extract_utc
函数;
tbase=# SELECT SYS_EXTRACT_UTC(TIMESTAMP '2012-04-19 17:30:00 +08:00 ') "CURRENT UTC TIME" FROM DUAL;
ERROR: function sys_extract_utc(timestamp without time zone) does not exist
LINE 1: SELECT SYS_EXTRACT_UTC(TIMESTAMP '2012-04-19 17:30:00 +08:00...
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
支持
trunc
TBase
对
trunc
函数传参参数类型支持不够,对数值型的支持(正负)不够,数据类型隐式转换不够;
tbase=# select trunc(3.25,'') from dual;
ERROR: invalid input syntax for integer: ""
LINE 1: select trunc(3.25,'') from dual;
^
tbase=# select trunc(100.984,-2.8) from dual;
ERROR: function trunc(numeric, numeric) does not exist
LINE 1: select trunc(100.984,-2.8) from dual;
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
tbase=# select trunc(100.984,2.8) from dual;
ERROR: function trunc(numeric, numeric) does not exist
LINE 1: select trunc(100.984,2.8) from dual;
^
HINT: No function matches the given name and argument types. You might ne