sql server instructions help 入門 sponsored link


別名 の最近のブログ記事

★SQL★  コマンドでテーブルの別名を使用する。

as を使用し、
テーブルの別名を作成できる。
以下を参照する。

select * from table_name as betu_name ;

または、

select * from table_name betu_name ;

長いテーブル名に短い名前を割り当てて読みやすくする。

例      as を使った例です。

select s.name,t.point from you_are_very_good_table s join thank_you_very_much_table t ;

select s.* from sky_table as s join ground_table as g ・・・・・


長いテーブル名を短い名前に変えるのが
as
です。
例1.テーブルの別名
select * from table1 as t1;
select * from table1 t1;

asキーワードは省略できる。










Buzzurl/ hatena/ MyYahoo!/ livedoorClip/ Google/ niftyclip/ pookmark/ flog/ FC2/

category

SQL


<<select>>
banner_14.gif

<<SQL>>
banner_14.gif

<<sql distinct>>
banner_14.gif

ブログランキング