I have created my TEST_TABLE
table using below query in oracle
CREATE TABLE \"PK\".\"TEST_TABLE\"
( \"MYNAME\" VARCHAR2(50),
\"MYVA
There are two ways. First (recommended) - to give name to constraints when creating it. Second - to search in ALL_CONS_COLUMNS
(or USER_CONS_COLUMNS
) system view.
You need something like this:
select constraint_name
from all_cons_columns
where table_name = 'TEST_TABLE'
and owner = 'PK'
and column_name = 'MYVAL1'
See documentation: https://docs.oracle.com/cloud/latest/db121/REFRN/refrn20045.htm#REFRN20045