![ישן](https://static.fresh.co.il/images/vBulletin/statusicon/post_old.gif)
30-12-2004, 19:11
|
![צלמית המשתמש של Ctzvi](image.php?u=10484&dateline=1098897882) |
|
|
חבר מתאריך: 13.12.02
הודעות: 147
|
|
דוגמה ב oracle
ככה זה עובד ב oracle.
נגיד שלטבלה קוראים MY_TABLE
השליפה היא:
select ucc.column_name
from user_constraints uc,user_cons_columns ucc
where uc.table_name = 'MY_TABLE'
and uc.constraint_type = 'P'
and uc.constraint_name = ucc.constraint_name;
|