I need an Oracle DB query where I can get the Primary keys, Data type and the length of an Attribute in BYTES.
Currently I am doing:
SELECT cols.table_name, cols.column_name
FROM all_constraints cons, all_cons_columns cols
WHERE cons.constraint_type = 'P'
AND cons.constraint_name = cols.constraint_name
AND cons.owner like 'DBP%';
where I am getting the table name, column name which is a primary key. Now I need the data type and the length of the column in BYTES.