如何将此查询放入SQL Developer中的存储过程?

时间:2019-04-08 18:56:01

标签: oracle-sqldeveloper

select guest.guestid, guest.firstname,guesttype,reservation.reservationid, rental.checkindate, rental.checkoutdate, reservation.numberofnights

from guest
inner JOIN rental ON rental.guestid = guest.guestid

inner JOIN reservation ON rental.reservationid = reservation.reservationid

where guest.guestid = 1111;

1 个答案:

答案 0 :(得分:1)

尝试一下:

CREATE OR REPLACE procedure_name(arg1 data_type, ...) AS
BEGIN
  [Your query]
END procedure_name;