VMware Greenplum 6 Documentationseparate variable, named the same as the column. For example: => SELECT 'hello' AS var1, 10 AS var2; -> \gset => \echo :var1 :var2 hello 10 If you specify a prefix, that string is prepended to the query's column names to create the variable names to use: => SELECT 'hello' AS var1, 10 AS var2; -> \gset result_ => \echo :result_var1 :result_var2 hello 10 If a column result is NULL, the corresponding variable If the argument is null, the result is null. Example: SELECT xmlcomment('hello'); xmlcomment -------------- Function: xmlconcat Synopsis: xmlconcat(xml[, …]) The function xmlconcat0 码力 | 2445 页 | 18.05 MB | 1 年前3
VMware Greenplum 7 Documentationseparate variable, named the same as the column. For example: => SELECT 'hello' AS var1, 10 AS var2; -> \gset => \echo :var1 :var2 hello 10 If you specify a prefix, that string is prepended to the query’s names to create the variable names to use: => SELECT 'hello' AS var1, 10 AS var2; -> \gset result_ => \echo :result_var1 :result_var2 hello 10 If a column result is NULL, the corresponding variable If the argument is null, the result is null. Example: SELECT xmlcomment('hello'); xmlcomment -------------- Function: xmlconcat Synopsis: xmlconcat(xml[, …]) The function xmlconcat0 码力 | 2221 页 | 14.19 MB | 1 年前3
VMware Greenplum 6 Documentationcommand. VMware Greenplum 6 Documentation VMware, Inc 709 => SELECT 'hello' AS var1, 10 AS var2; -> \gset => \echo :var1 :var2 hello 10 If you specify a prefix, that string is prepended to the query’s column names to create the variable names to use: => SELECT 'hello' AS var1, 10 AS var2; -> \gset result_ => \echo :result_var1 :result_var2 hello 10 If a column result is NULL, the corresponding variable If the argument is null, the result is null. Example: SELECT xmlcomment('hello'); xmlcomment -------------- Function: xmlconcat Synopsis: xmlconcat(xml[, …]) The function xmlconcat0 码力 | 2374 页 | 44.90 MB | 1 年前3
VMware Tanzu Greenplum v6.23 Documentationseparate variable, named the same as the column. For example: => SELECT 'hello' AS var1, 10 AS var2; -> \gset => \echo :var1 :var2 hello 10 If you specify a prefix, that string is prepended to the query’s column names to create the variable names to use: => SELECT 'hello' AS var1, 10 AS var2; -> \gset result_ => \echo :result_var1 :result_var2 hello 10 If a column result is NULL, the corresponding variable If the argument is null, the result is null. Example: SELECT xmlcomment('hello'); xmlcomment -------------- Function: xmlconcat Synopsis: xmlconcat(xml[, ⋯]) The function xmlconcat0 码力 | 2298 页 | 40.94 MB | 1 年前3
VMware Greenplum v6.25 Documentationthe row is stored into a separate variable, named the same as the column. For example: => SELECT 'hello' AS var1, 10 AS var2; -> \gset => \echo :var1 :var2 Note If you use the \o command to redirect Documentation VMware, Inc. 688 hello 10 If you specify a prefix, that string is prepended to the query's column names to create the variable names to use: => SELECT 'hello' AS var1, 10 AS var2; -> \gset \gset result_ => \echo :result_var1 :result_var2 hello 10 If a column result is NULL, the corresponding variable is unset rather than being set. If the query fails or does not return one row, no variables0 码力 | 2400 页 | 18.02 MB | 1 年前3
VMware Tanzu Greenplum v6.21 Documentationseparate variable, named the same as the column. For example: => SELECT 'hello' AS var1, 10 AS var2; -> \gset => \echo :var1 :var2 hello 10 If you specify a prefix, that string is prepended to the query’s column names to create the variable names to use: => SELECT 'hello' AS var1, 10 AS var2; -> \gset result_ => \echo :result_var1 :result_var2 hello 10 If a column result is NULL, the corresponding variable If the argument is null, the result is null. Example: SELECT xmlcomment('hello'); xmlcomment -------------- Function: VMware Tanzu Greenplum 6 Documentation VMware, Inc 699 xmlconcat0 码力 | 2025 页 | 33.54 MB | 1 年前3
VMware Tanzu Greenplum 6 Documentationseparate variable, named the same as the column. For example: => SELECT 'hello' AS var1, 10 AS var2; -> \gset => \echo :var1 :var2 hello 10 If you specify a prefix, that string is prepended to the query's names to create the variable names to use: => SELECT 'hello' AS var1, 10 AS var2; -> \gset result_ => \echo :result_var1 :result_var2 hello 10 If a column result is NULL, the corresponding variable If the argument is null, the result is null. Example: SELECT xmlcomment('hello'); xmlcomment -------------- Function: xmlconcat Synopsis: xmlconcat(xml[, …]) The function xmlconcat0 码力 | 2311 页 | 17.58 MB | 1 年前3
VMware Greenplum v6.18 Documentationplc_python_shared return 'hello from Python' $$ LANGUAGE plcontainer; And test the function using: postgres=# SELECT dummyPython(); dummypython ------------------- hello from Python (1 row) $$ # container: plc_r_shared return ('hello from R') $$ LANGUAGE plcontainer; CREATE FUNCTION postgres=# select dummyR(); dummyr -------------- hello from R (1 row) For further details and how, "who": "Greenplum"} ) $$ LANGUAGE plpythonu; select greet('hello'); greet ------------------- (hello,World) (hello,Greenplum) (2 rows) Running and Preparing SQL Queries The PL/Python0 码力 | 1959 页 | 19.73 MB | 1 年前3
VMware Greenplum v6.19 Documentationplc_python_shared return 'hello from Python' $$ LANGUAGE plcontainer; And test the function using: postgres=# SELECT dummyPython(); dummypython ------------------- hello from Python (1 row) $$ # container: plc_r_shared return ('hello from R') $$ LANGUAGE plcontainer; CREATE FUNCTION postgres=# select dummyR(); dummyr -------------- hello from R (1 row) For further details and how, "who": "Greenplum"} ) $$ LANGUAGE plpythonu; select greet('hello'); greet ------------------- (hello,World) (hello,Greenplum) (2 rows) Running and Preparing SQL Queries The PL/Python0 码力 | 1972 页 | 20.05 MB | 1 年前3
VMware Greenplum v6.17 Documentationplc_python_shared return 'hello from Python' $$ LANGUAGE plcontainer; And test the function using: postgres=# SELECT dummyPython(); dummypython ------------------- hello from Python (1 row) # container: plc_r_shared return ('hello from R') $$ LANGUAGE plcontainer; CREATE FUNCTION postgres=# select dummyR(); dummyr -------------- hello from R (1 row) For further details how, "who": "Greenplum"} ) $$ LANGUAGE plpythonu; select greet('hello'); greet ------------------- (hello,World) (hello,Greenplum) (2 rows) Running and Preparing SQL Queries The PL/Python0 码力 | 1893 页 | 17.62 MB | 1 年前3
共 11 条
- 1
- 2













