Advertisement
Guest User

Untitled

a guest
May 29th, 2015
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.28 KB | None | 0 0
  1. DO $$DECLARE TABLE_NAME RECORD;
  2. BEGIN
  3.   FOR TABLE_NAME IN SELECT db_table_name FROM dictionary_info
  4.   LOOP
  5.     RAISE NOTICE 'BAZINGA';
  6.     --     RAISE NOTICE 'Table: %', table_name;
  7.     INSERT INTO dictionary_version (db_table_name, version_id) VALUES ('1', '3');
  8.   END LOOP;
  9. END$$;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement