I have the following request with me that I am trying to run:
SELECT Script from ( SELECT 9 as ColOrder, ' INSERT INTO PROJ VALUES(' || ID || ',''' || Name || ''', ''' || Version || ''', ''ABCD'', sysdate , ''ABCD'', sysdate);' as Script FROM PROJ where Name like '%[Param.1]%' union SELECT 11 as ColOrder,' INSERT INTO PROJMOD VALUES(' || ID || ', ' || ProjID || ', ' || ModID || ', ' || ObjID || ', ''ABCD'', sysdate, ''ABCD'', sysdate);' as Script FROM PROJMOD where ProjID in ( select ID from PROJ where Name like '%[Param.1]%') ) x Order by ColOrder
But that gives me ORA-12704: character set mismatch error.
When I run both select statements separately, it gives me the correct output, but when I combine both selects, it gives the tme character set mismatch error.
What could be wrong here?
oracle
Soham shah
source share