Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. create table emptytable(id int);
  2.  
  3. create function selectany() returns emptytable as $$
  4. DECLARE
  5. _out emptytable;
  6. BEGIN
  7. SELECT * INTO emptytable FROM emptytable limit 1;
  8. RETURN _out;
  9. END;
  10. $$ LANGUAGE PLPGSQL;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement