SAPHANA学习(6):SQL Function(E)

/*

63.ESCAPE

ESCAPE_DOUBLE_QUOTES(<value>)

转义双引号

ESCAPE_SINGLE_QUOTES(<value>)

转义单引号

*/

SELECT ESCAPE_DOUBLE_QUOTES('TAB"LE') FROM DUMMY;
SELECT ESCAPE_SINGLE_QUOTES('Str''ing') FROM DUMMY;

/*

64.EXP

EXP(<number>)

自然对数

*/

SELECT EXP (1.0) FROM DUMMY

/*

65.EXPRESSION_MACRO

EXPRESSION_MACRO( <expression_macro_alias> )

返回汇总结果

*/

--CREATE VIEW V_TEST_AGGRE AS SELECT * FROM CORRELATIONTABLE WITH EXPRESSION MACROS(AVG("VALUE") AS AVG_VALUE);
--SELECT EXPRESSION_MACRO(AVG_VALUE) FROM V_TEST_AGGRE;

 

posted @ 2020-10-27 18:57  渔歌晚唱  阅读(139)  评论(0编辑  收藏  举报