2
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 an appointment:
SELECT * FROM carro WHERE marca = 'volks';
I would like, from a previous, return to the above query
CREATE PROCEDURE prc_carros (dsmarca VARCHAR2) IS
BEGIN
SELECT * FROM carro WHERE marca = dsmarca;
END;
I would like you to return the result as if it were a normal table
What you can do in the oracle is return a cursor, with the result of your select, or create a function that works like a table, if it suits you I can post an explanation of how to do
– Jeferson Almeida
good still could not do either of the two rs
– adventistaam