Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-00932: inconsistent datatypes: expected CHAR got LONG

Tony007Dec 24 2021 — edited Dec 24 2021

hi am having this error in this sql
SELECT * from emp_msg
WHERE substr(rtrim(MSG_TEXT,2)) = 'X'

update emp_msg
set msg_test = substr(rtrim(MSG_TEXT,2,'x'))

am in oracle database 11g

data type
MSG_TEXT LONG

Comments
Post Details
Added on Dec 24 2021
5 comments
12,999 views