Created
July 14, 2015 10:02
-
-
Save gongpeione/e0b8549d7321465e8f95 to your computer and use it in GitHub Desktop.
create temporary table with tables name
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 * | |
FROM | |
( | |
SELECT *, 'cdk_record_07' as tableName FROM cdk_record_07 | |
UNION ALL | |
SELECT *, 'cdk_record_01' as tableName FROM cdk_record_01 | |
) s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment