SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
CREATE TABLE details (id int, val int); INSERT INTO details VALUES (1, 2); CREATE OR REPLACE PROCEDURE get() LANGUAGE SQL AS $$ SELECT * FROM details; $$; CALL get(); CREATE OR REPLACE FUNCTION get_func() RETURNS TABLE (column1 int, column2 int) LANGUAGE PLPGSQL AS $$ BEGIN RETURN QUERY SELECT * FROM details; END; $$; SELECT * FROM get_func();

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear