LoginSignup
0
0

More than 5 years have passed since last update.

オラクルマスターブロンズ12cまとめ

Posted at

はじめに

オラクルマスターブロンズを取るために学習中
SQLは全くの素人なので、それぞれの式とかコマンド?とか変数がどう動くかおさらいしながらまとめます。

distinct

重複業の削除
フィールド名が複数あった場合は、それらを組み合わせて一意になるように重複行を省いて表示する。

distinct
select
distinct フィールド名[,フィールド名,・・・]
from テーブル名;

SQL関数

upper

アッパー。
引数に渡したものを全部大文字にする。

lower

ロウアー。
引数に渡したものを全部小文字にする。

initcap

イニットキャップ
引数に渡したものを頭文字大文字、ほか小文字と、いい感じに成型する。

select upper(last_name),lower(last_name),initcap(last_name)
from hoge;

upper(last_name),lower(last_name),initcap(last_name)
---------------- ---------------- ------------------
AUSTIN           austin           Austin
GRANT            grant            Grant

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