★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
です。
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
です。