4

4



projektSBDnowy.txt

dbms_output.put_line (w_name ||'' || w_sumame || 'sold a ' || w_row.name || 'for 1 || w_row.price)

end;    ---

else

begin

dbms_output.put_line (w_name || ’' || w_sumame || 'gave away a' || w_row.name );

end; end if;

fetch w_cursor into w_row;

end loop; dose w_cursor;

end;

/

—this procedurę shows all parts in stock for parbcular car model

create or replace procedurę part_in_stock(p_model varchar2) is cursor p_cursor is select part_name, price, in_stock from parts

where id_type=(select id_type from types where model=p_model); partsjist p_cursor%rowtype;

begin

open p_cursor;

fetch p_cursor into partsjist;

dbms_output.putJine('Available parts for '||p_model); while p_cursor%found

loop

dbms_output.putJine(partsJisLpart_name|r '||partsJist.priceH' '||partsJist.in_stock); fetch p_cursor into partsjist;

end loop; dose p_cursor;

end;

/

Strona 4


Wyszukiwarka

Podobne podstrony:
Bazy danych 2 - Laboratorium 2 SQL> SQL> LSIT 2 3 2 DBMS_OUTPUT.PUT_LINE( Hello, world ); 3*
projekt8 (3) KARTA POBYTU NR/ STAYCARDNR Imię/Name Nazwisko/ Sumame Termin pobytu / Stajpreńod
projekt8 (9) Karta meldunkowa Nazwisko, imię / fiest name ]Cac2.cr Adres zameldowania / addres -6U,
projektSBDnowy.txt create or replace trigger new_worker after insert on workers for each
projektSBDnowy.txt .create or replace trigger personal_data after update on dients for each
Projekt ICHNOS PLUS, lnnovation and CHange: NetWork of One-stop Shops for Business - PLUS w ramach I
20110307101 jpeg DIAGRAM FOR LUBRICATING POINTS No. Name for lubricating 
dictionary6 q,ueue You linę up in a ąueue to wait for a bus. You are quick when you move
potrfig7 primaiy input- high tension vdcage seconday output higi ten sion insuladon perforated alumi
testy5 Name and S urna mc Parł 2A Give name for tlie following compounds:{2 x !) a) 2. Wrilc thc me
52,53 DiseasesMatch the common name for a disease with its medical equivalent. baldness Medical

więcej podobnych podstron