3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Oracleでカラム情報を調べる(USER_TAB_COLUMNS)

Posted at

Oracleで、MySQLで言うSHOW CREATE TABLEみたいなことがしたいとき、
DESC (テーブル名)

とかで調べるが、これは権限がないと使えなかったりする。
カラムの型さえわかればいいみたいなときは

SELECT * FROM USER_TAB_COLUMNS WHERE TABLE_NAME LIKE (テーブル名)

とやるとカラム1行が1件となるデータが取得できる。

USER_TAB_COLUMNS
テーブルの列名を調べる:user_tab_columns

3
4
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
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?