Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(inserted(id_uczen, id_klasy))
- {
- if(klasaDostepna(id_klasy))
- INSERT;
- else
- {
- print("Klasa osiągnęła limit 25 osób");
- break;
- }
- }
- klasaDostepna(id_klasy)
- {
- liczba_uczniow = SELECT COUNT(id_uczen) FROM Uczen
- WHERE Uczen.id_klasy = id_klasy;
- if(liczba_uczniow <= 25)
- return 1;
- else
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment