复制select o.obj# as objectId,两种 o.name AS tableName, oc.name AS constraintName, decode(c.type#, 1, C, 2, P, 3, U, 4, R, 5, V, 6, O, 7,C, ?) as constraintType, col.name AS columnName from sys.con$ oc, sys.con$ rc, sys.obj$ ro,sys.obj$ o, sys.obj$ oi, sys.cdef$ c, sys.col$ col, sys.ccol$ cc, sys.attrcol$ ac where oc.con# = c.con# and c.obj# = o.obj# and c.rcon# = rc.con#(+) and c.enabled = oi.obj#(+) and c.robj# = ro.obj#(+) and c.type# != 8 and c.type# != 12 /* dont include log groups */ 字串9 and c.con# = cc.con# and cc.obj# = col.obj# and cc.intcol# = col.intcol# and cc.obj# = o.obj# and col.obj# = ac.obj#(+) and col.intcol# = ac.intcol#(+) and o.name = your table 1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.