Not your computer? Use a private browsing window to sign in. Learn more about using Guest mode
Not your computer? Use a private browsing window to sign in. Learn more about using Guest mode
Oracle勉強していて何気に面倒なのが、テキトーな件数のレコードを持つテーブルを作ること。ので、いままでに自分の知ることが出来た範囲でやり方をメモしていく。 環境 Oracle Database Express Edition 11g Release 2をWindows上で動作 Oracle SQL Developer 3.2 連番作成SQL 基本 下記はSQL Develoerのクエリ例からのコピペ。 insert into bonuses(employee_id) (select e.employee_id from employees e, orders o where e.employee_id = o.sales_rep_id group by e.employee_id); create table emp as select * from employees; ↑は、sel
木構造なデータの探索 親子条件を満たす行を再帰的に出力 再帰with句で木構造なデータの探索を行うことができます。 create table TreeData(ID primary key,OyaID) as select 1,null from dual union all select 2, 1 from dual union all select 3, 1 from dual union all select 4, 2 from dual union all select 5, 3 from dual union all select 10,null from dual union all select 11, 10 from dual union all select 12, 10 from dual;
テーブル一覧、インデックス一覧、ビューの定義の一覧 Top | Knowledge| DB構築| 文字列関数| 日付関数| 集計関数| SQL関数(アルファベット順) SQL(抽出・更新)| SQL*Plus| PL/SQL| Utility| Structure| スキーマ| チューニング| 用語| 参考書 select table_name, tablespace_name, status from user_tables または select table_name, tablespace_name, status from tabs tabs は user_tables のエイリアス テーブル定義を見るには SQL*Plus の DESC コマンド を使用する。 SQL(DDL) として取り出したい場合には DBMS_METADATA パッケージ を使用する。 ビューとビューの定義文
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く