テーブルの一覧を取得する
select table_name from user_tables;
テーブルの構造を表示する
desc TABLE_NAME
テーブルにあるデータの個数を調べる
select COUNT(*) from TABLE_NAME;
テーブルusersからカラムsuper_userの値が0以外のものを取得
select * from users where super_user <> '0'
データ更新
where節を必ず付けるよう気をつける。
update USERS set super_user = '1' where name = 'hello'
データ追加
insert into USERS (id, login) values ('123', '456');
sqlplusの終了
quit