I have the following table:
CREATE TABLE CARRO (
CD_CARRO INT
,DONO VARCHAR(20)
,MARCA VARCHAR2(20)
);
The inserts
INSERT INTO CARRO VALUES (1,'VICENTE','FERRARI');
INSERT INTO CARRO VALUES (2,'CARLOS','FUSCA');
INSERT INTO CARRO VALUES (3,'MAIZA','DOBLO');
INSERT INTO CARRO VALUES (4,'FERNANDA','FUSCA');
INSERT INTO CARRO VALUES (5,'BRUNA','FERRARI');
I have a query:
SELECT * FROM carro WHERE marca = 'volks';
I would like, from a procedure, to return the above query
CREATE PROCEDURE prc_carros (dsmarca VARCHAR2) IS
BEGIN
SELECT * FROM carro WHERE marca = dsmarca;
END;
I would like to return in procedure oracle the result as if it were a normal table