LoginSignup
0
0

More than 1 year has passed since last update.

SQL | AS は実はなくても動く

Last updated at Posted at 2016-04-25

以下はどちらも同じだ。

ASのある世界

SELECT
  'Alice' AS alice,
  'Bob' AS bob
;

ASのない世界

SELECT
  'Alice' alice,
  'Bob' bob
;

結果

+-------+-----+
| alice | bob |
+-------+-----+
| Alice | Bob |
+-------+-----+

環境

  • mysql Ver 14.14 Distrib 5.7.12, for osx10.11 (x86_64) using EditLine wrapper

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

メンター受付

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