I have a oracle trigger and it returns the error
Additional information: ORA-00936: missing expression
In my TOAD it shows me the below line.
EXECUTE IMMEDIATE 'UPDATE TBL_NEWS_TYPE SET FULLNAME='|| newsName ||' WHERE ID = SELECT MAX(ID) FROM TBL_NEWS_TYPE)';
In here newsName is varchar2 variable like newsName VARCHAR2(50) / and ID in INTEGER.
execute immediatehere? There is no reason for it. And if you do have to for some strange reason, then at least use it with parameters. Concatenating values like that is going to give you trouble in the long run. e,g.:execute immediate 'update tbl_news_type set fullname = :1 where id = (...)' using newsname;