php - PostgreSQL: Create schema in specific database [NOT psql] -


im trying create sql file import database/schema/tables php.

if use pgadmin, inserts meta-command \connect after create table , generates error if run sql pg_query in php.

after read following questions: postgresql: create schema in specific database , postgres creating schema in specific database

i ask: how can create new schema, inside specific database, sql commands (not psql commands)? specific database not default named 'postgres' database, created me.

the short answer if connected database can't pure sql.

due fact there no use database; in postgres in mysql have open connection specific database want create schema in (e.g. pg_connect in php).

the schema can created create schema... sql command might know.

perhaps working pg_dump , pg_restore option you. have @ sources of phppgadmin.

i hope helped bit.

*jost


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -