Created
June 1, 2012 02:31
-
-
Save ichiroku11/2848188 to your computer and use it in GitHub Desktop.
テーブル名、カラム名、データ型を表示するクエリ
This file contains 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 | |
sys.tables.name, | |
sys.columns.name, | |
sys.types.name | |
from sys.tables | |
inner join sys.columns | |
on sys.tables.object_id = sys.columns.object_id | |
inner join sys.types | |
on sys.columns.user_type_id = sys.types.user_type_id | |
order by | |
sys.tables.name, | |
sys.columns.name; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment