Search
 
SCRIPT & CODE EXAMPLE
 

TYPESCRIPT

how to check constraints on a table in sql oracle

SELECT *
  FROM user_cons_columns
 WHERE table_name = '<your table name>';
Comment

how to find constraints on a table in oracle

SELECT cons.OWNER 			AS CHILD_OWNER,
       cons.TABLE_NAME 		AS CHILD_TABLE,
       cons.CONSTRAINT_NAME AS CONSTAINT_NAME,
       cons.CONSTRAINT_TYPE AS CONSTRAINT_TYPE,
       col.OWNER 			AS PARENT_OWNER,
       col.TABLE_NAME 		AS PARENT_TABLE,
       col.COLUMN_NAME 		AS COLUMN_NAME
FROM DBA_CONS_COLUMNS col, DBA_CONSTRAINTS cons
WHERE cons.R_OWNER = col.OWNER
  AND cons.R_CONSTRAINT_NAME = col.CONSTRAINT_NAME
  AND cons.TABLE_NAME = 'table_name';
Comment

PREVIOUS NEXT
Code Example
Typescript :: how to find a combination of all elements in a python list 
Typescript :: block robots from crawling 
Typescript :: firestore security rules array-contains 
Typescript :: vue 3 setup props typescript 
Typescript :: typescript string contains 
Typescript :: a href without redirecting 
Typescript :: react forwardref useImperativeHandle typescript 
Typescript :: test management 
Typescript :: Could not find Angular Material core theme. Most Material components may not work as expected 
Typescript :: mysql insert exists update 
Typescript :: is id in array typescript 
Typescript :: display current directory contents in a long format with user and group ids displayed numerically 
Typescript :: use map with filter in react components from arrays of data 
Typescript :: swalert 2 show loader 
Typescript :: peer of typescript@=2.8.0 
Typescript :: how to erase elemts accoding to index c++ 
Typescript :: big brackets latex 
Typescript :: python find the number of elements in a list 
Typescript :: typescript global variable 
Typescript :: copy object in typescript 
Typescript :: how to check if elements dont exist in testing library 
Typescript :: google sheets add all numbers in a column with condition 
Typescript :: Please remove usages of `jcenter()` Maven repository from your build scripts and migrate your build to other Maven repositories. 
Typescript :: array with multiple types in ts 
Typescript :: typeorm query builder update relations filed 
Typescript :: how to declare an empty array in typescript 
Typescript :: typescript promise 
Typescript :: arrow function in typescript 
Typescript :: how to validate email address in typescript 
Typescript :: create custom properties for user firebase 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =