0
0

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.

sql memo

Posted at

create table ddlの取得

DBMS_METADATA.GET_DDL( オブジェクトタイプ , オブジェクト名 , [ スキーマ ] )

オブジェクトタイプ : TABLE、VIEWなどの取得するオブジェクトの種類
オブジェクト名 : テーブル名、ビュー名などのオブジェクト名
スキーマ : オブジェクトの所有者。デフォルトは、ログイン中のユ-ザー

spool create_table.sql

select
dbms_metadata.get_ddl('TABLE',table_name)
from
user_tables;

spool off;

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?