|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
getting primary keys
Hi,
I am a beginner to MS SQL. How do I get the primary keys of a given table in MS SQL. Karteek |
|
#2
|
|||
|
|||
|
You select from the view information_schema.key_column_usage. For more details, look in the manual.
|
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > getting primary keys |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|