Skip to content

Instantly share code, notes, and snippets.

@tony1223
Created October 22, 2017 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tony1223/d867bf666157ff095690de6de62a8a05 to your computer and use it in GitHub Desktop.
Save tony1223/d867bf666157ff095690de6de62a8a05 to your computer and use it in GitHub Desktop.
--postgres
SELECT concat('table.',data_type,'("',column_name,'");') FROM information_schema.columns WHERE
table_name = 'light_report' ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment