drop_if_exists.out

来自「postgresql8.3.4源码,开源数据库」· OUT 代码 · 共 92 行

OUT
92
字号
-- -- IF EXISTS tests-- -- table (will be really dropped at the end)DROP TABLE test_exists;ERROR:  table "test_exists" does not existDROP TABLE IF EXISTS test_exists;NOTICE:  table "test_exists" does not exist, skippingCREATE TABLE test_exists (a int, b text);-- viewDROP VIEW test_view_exists;ERROR:  view "test_view_exists" does not existDROP VIEW IF EXISTS test_view_exists;NOTICE:  view "test_view_exists" does not exist, skippingCREATE VIEW test_view_exists AS select * from test_exists;DROP VIEW IF EXISTS test_view_exists;DROP VIEW test_view_exists;ERROR:  view "test_view_exists" does not exist-- indexDROP INDEX test_index_exists;ERROR:  index "test_index_exists" does not existDROP INDEX IF EXISTS test_index_exists;NOTICE:  index "test_index_exists" does not exist, skippingCREATE INDEX test_index_exists on test_exists(a);DROP INDEX IF EXISTS test_index_exists;DROP INDEX test_index_exists;ERROR:  index "test_index_exists" does not exist-- sequenceDROP SEQUENCE test_sequence_exists;ERROR:  sequence "test_sequence_exists" does not existDROP SEQUENCE IF EXISTS test_sequence_exists;NOTICE:  sequence "test_sequence_exists" does not exist, skippingCREATE SEQUENCE test_sequence_exists;DROP SEQUENCE IF EXISTS test_sequence_exists;DROP SEQUENCE test_sequence_exists;ERROR:  sequence "test_sequence_exists" does not exist-- schemaDROP SCHEMA test_schema_exists;ERROR:  schema "test_schema_exists" does not existDROP SCHEMA IF EXISTS test_schema_exists;NOTICE:  schema "test_schema_exists" does not exist, skippingCREATE SCHEMA test_schema_exists;DROP SCHEMA IF EXISTS test_schema_exists;DROP SCHEMA test_schema_exists;ERROR:  schema "test_schema_exists" does not exist-- typeDROP TYPE test_type_exists;ERROR:  type "test_type_exists" does not existDROP TYPE IF EXISTS test_type_exists;NOTICE:  type "test_type_exists" does not exist, skippingCREATE type test_type_exists as (a int, b text);DROP TYPE IF EXISTS test_type_exists;DROP TYPE test_type_exists;ERROR:  type "test_type_exists" does not exist-- domainDROP DOMAIN test_domain_exists;ERROR:  type "test_domain_exists" does not existDROP DOMAIN IF EXISTS test_domain_exists;NOTICE:  type "test_domain_exists" does not exist, skippingCREATE domain test_domain_exists as int not null check (value > 0);DROP DOMAIN IF EXISTS test_domain_exists;DROP DOMAIN test_domain_exists;ERROR:  type "test_domain_exists" does not exist-- drop the tableDROP TABLE IF EXISTS test_exists;DROP TABLE test_exists;ERROR:  table "test_exists" does not exist------ role/user/group---CREATE USER tu1;CREATE ROLE tr1;CREATE GROUP tg1;DROP USER tu2;ERROR:  role "tu2" does not existDROP USER IF EXISTS tu1, tu2;NOTICE:  role "tu2" does not exist, skippingDROP USER tu1;ERROR:  role "tu1" does not existDROP ROLE tr2;ERROR:  role "tr2" does not existDROP ROLE IF EXISTS tr1, tr2;NOTICE:  role "tr2" does not exist, skippingDROP ROLE tr1;ERROR:  role "tr1" does not existDROP GROUP tg2;ERROR:  role "tg2" does not existDROP GROUP IF EXISTS tg1, tg2;NOTICE:  role "tg2" does not exist, skippingDROP GROUP tg1;ERROR:  role "tg1" does not exist

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?