VastbaseG100

基于openGauss内核开发的企业级关系型数据库。

Menu

兼容WITH FUNCTION

WITH FUNCTION F_WF1(C INT) RETURNS INT AS $$
BEGIN
RETURN C * 10;
END
$$,
FUNCTION F_WF2(C TEXT) RETURNS TEXT AS $$
BEGIN
RETURN C || 'abc';
END
$$
SELECT F_WF1(1234), F_WF2('1234');