I have a table EMPLOYEE
with a column called LAYOUT
. LAYOUT
is a CLOB
column
How can I check if the LAYOUT
contains any characters that are not ASCII? Ideally I would like to see the rows that contain the non-ASCII character
I have a table EMPLOYEE
with a column called LAYOUT
. LAYOUT
is a CLOB
column
How can I check if the LAYOUT
contains any characters that are not ASCII? Ideally I would like to see the rows that contain the non-ASCII character
I was able to figure it out with the help of comments on the question
Begin
for empData in (select * from EMPLOYEE)
LOOP
IF CONVERT(empData.LAYOUT, 'US7ASCII') != empData.LAYOUT THEN
DBMS_OUTPUT.PUT_LINE('Non ASCII found!');
END IF;
END LOOP;
END;