Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- create table emptytable(id int);
- create function selectany() returns emptytable as $$
- DECLARE
- _out emptytable;
- BEGIN
- SELECT * INTO emptytable FROM emptytable limit 1;
- RETURN _out;
- END;
- $$ LANGUAGE PLPGSQL;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement