Last active
December 22, 2015 03:45
-
-
Save YumaInaura/77b50105e5ddf3c314b2 to your computer and use it in GitHub Desktop.
SQL で FROM を使わず、架空のレコードを SELECT する方法 ref: http://qiita.com/Yinaura/items/b3e3c88cb9e44dfb6595
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT 'john', 'programmer', 30; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+------+-----------+----+ | |
| john | programmer | 30 | | |
+------+-----------+----+ | |
| john | programmer | 30 | | |
+------+-----------+----+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT 'john' AS Name, 'programmer' AS Job, 30 AS Age; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+------+------------+-----+ | |
| Name | Job | Age | | |
+------+------------+-----+ | |
| john | programmer | 30 | | |
+------+------------+-----+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment