Postgres: To set a schema

Prior to running a SQL, set your schema if the object names are not prefixed with schema name:


SELECT FROM <schema>."my_table"



Or you can change your default schema

SHOW search_path;
SET search_path TO my_schema;



Check your table schema here

SELECT *
FROM information_schema.columns

Comments

Popular posts from this blog

Oracle: To clean up WRI$_ADV_OBJECTS