What's the basic syntax for a pl/sql variable? I'm trying to add a variable in my select statement.
My query:
DECLARE
V_id number := 251 ;
BEGIN
SELECT *
FROM client
where 1=1
and clientid = V_id;
END;
Error:
PLS-00428 an INTO clause is expected in this Select statement