Use a variable with “LIKE %” (e.g. “variable%”) in PL/SQL?
问题 The question is similar to using LIKE in SQL *PLUS , where a select statement contains a LIKE clause as follows: select * from sometable where somecolumn LIKE 'something%'; How could one use the same within a cursor? I tried using the following: cursor c is select * from sometable where somecolumn like 'something%'; same as above EDIT: I need to get something as a parameter, meaning, the select statement is executed within a stored procedure. EDIT 2: create procedure proc1 (search VARCHAR) is