Skip to content

Instantly share code, notes, and snippets.

Created August 25, 2016 20:03
Show Gist options
  • Save anonymous/706744ac9540c7527f39c54aa2ad7daf to your computer and use it in GitHub Desktop.
Save anonymous/706744ac9540c7527f39c54aa2ad7daf to your computer and use it in GitHub Desktop.
Bir veri tabanı tablosundaki tüm kolon adlarını listeleyen sorgu.
-- SQL: Tablodaki Kolon Adlarını Sorgu ile Çekmek
select COLUMN_NAME as [Kolon Adı] from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME = 'Sehir' and TABLE_SCHEMA = 'Adres'
-- Bu sorgu ile veri tabanında yer alan tüm tabloların tüm kolonlarına ulaşılabilir.
-- Aşağıdaki sorgu ile başka hangi bilgilerin ulaşılabilir olduğunu gözlemleyebilirsiniz.
select * from INFORMATION_SCHEMA.COLUMNS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment