SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
CREATE TABLE table1( table1_id serial PRIMARY KEY, txt text ); INSERT INTO table1(txt) VALUES ('a'), ('b'), ('c'), ('d'), ('e'), ('f'), ('g'); CREATE or REPLACE FUNCTION my_func2(_row table1) RETURNS SETOF table1 AS 'SELECT ($1).*' LANGUAGE sql; with test as ( select * from table1 ) select my_func2 (record(test.*)) from test;
Stuck with a problem? Got Error? Ask ChatGPT!
Copy Clear