Utwórz tabelę, jeśli nie istnieje PostgreSQL
CREATE TABLE IF NOT EXISTS table_name(id INT);
Yasha
CREATE TABLE IF NOT EXISTS table_name(id INT);
SELECT 1 FROM information_schema.tables
WHERE table_schema = 'schema_name' AND table_name = 'table_name';
SELECT EXISTS (
SELECT FROM pg_tables
WHERE schemaname = 'schema_name'
AND tablename = 'table_name'
);