Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How to convert this SQL-Statement to PL/SQL?
On Sun, 03 Aug 1997 22:49:29 +0200, Ansgar Scherp <Ansgar.Scherp_at_Artis.Uni-Oldenburg.DE> wrote:
> SELECT *
> FROM Customer
> WHERE name = "..." OR name = "..." ...
>with an undefinded number of ' name = "..." '.
>
>How can I do this in PL/SQL?
Simple:
declare
r_customer customer%type;
begin
select * into r_customer from customer where name in ('FIRST','SECOND', 'ETCETERA...');end;
I don't know where your undefined number of 'name="..."' comes from.
![]() |
![]() |