Enumeration
Get version:
select version();
Get current user:
select current_user;
Get all databases:
select datname from pg_database;
Get all tables from a database:
select table_name from $dbname.information_schema.tables where table_schema = 'public';
Get details about a table:
select column_name, data_type from $dbname.information_schema.columns where table_name = 'menu';
Leave a Reply
You must be logged in to post a comment.