Good morning, if anyone can help me, I need a query that returns me the constraints of a table and its data types. I'm trying to set up a procedure generator to facilitate, it takes a lot of time to create procedures. In this select it does not bring me the data type.
SELECT DISTINCT SYS.USER_CONS_COLUMNS.COLUMN_NAME FROM USER_CONSTRAINTS NATURAL JOIN SYS.USER_CONS_COLUMNS WHERE TABLE_NAME = 'PRODSERV';