Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- insert into kierunki (id_kierunku, nazwa_kierunku) values (13, 'Kryminologia stosowana');
- insert into wydzialy (id_wydzialu, nazwa_wydzialu) values (5, 'Nauk spolecznych');
- insert into studenci (id_studenta, imie, nazwisko, data_urodzenia, id_wydzialu, id_kierunku, rok_studiow) values
- (22, 'Tomasz', 'Kolo', '1996-05-30',5,13,3),
- (23, 'Grzegorz', 'Slimak', '1996-03-01',5,13,3);
- update studenci set imie='Robert', nazwisko='Kulicki' where id_studenta=4;
- update stypendia set maksymalna_wysokosc='500' where id_stypendium=1;
- delete from przyznane_stypendia where id_studenta=10;
- delete from studenci where id_studenta=10;
- delete from przyznane_stypendia where id_studenta=5;
- delete from studenci where nazwisko='Nowak';
- select * from studenci where nazwisko='Nowak';
- select * from przyznane_stypendia where id_studenta='5';
- select imie, nazwisko nazwa_kierunku, nazwa_wydzialu
- from studenci,kierunki,wydzialy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement