Can you please tell me how can | pass variable in an oracle LIKE
statement?
here is the plsql :
declare
variables VARCHAR2 (200):= 'exemple';
V1 integer ;
BEGIN
select COUNT(*)into V1 from user_source
where name LIKE '%'+variables+'%'
;
DBMS_OUTPUT.PUT_LINE(V1);
END;
PS : i need to use the % in the like sql statement. it's not just : where name LIKE variables the % operator is necessary ! thank you for the help !