LoginSignup
11
12

More than 5 years have passed since last update.

テーブル存在確認SQL

Posted at

テーブルが存在しているか確認するSQLです。

PostgreSQL/Redshift

SELECT * FROM information_schema.tables WHERE table_name = 'table_name';

Oracle

SELECT owner,table_name FROM dba_tables WHERE table_name = 'table_name';

11
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
12