Skip to content

Instantly share code, notes, and snippets.

@tony1223
Created October 22, 2017 09:11
Show Gist options
  • 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