|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
show primary key
Hi, I'm using the oracle db. Let said I have the table ac_cardholder. What is the sql command to get know the primary key?
Thank you! Quote:
|
|
#2
|
|||
|
|||
|
You will need to look in the ALL_CONSTRAINTS table where the tablename = 'ac_cardholder'
__________________
El éxito consiste en una serie de pequeñas victorias día a día MySQL, MS SQL, MS ACCESS, Oracle Database Manager - http://victorpendleton.net/products/psdviewer.html |
|
#3
|
|||
|
|||
|
As victorpendleton says, you should query the ALL_CONSTRAINTS view:
select * from ALL_CONSTRAINTS where CONSTRAINT_TYPE = 'P' and TABLE_NAME = 'AC_CARDHOLDER' Good Day, Dan |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > show primary key |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|