-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFile09.sql
More file actions
73 lines (57 loc) · 1.51 KB
/
Copy pathFile09.sql
File metadata and controls
73 lines (57 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
Delimiter //
Create procedure update_donor_age(in Age int,in a int)
Begin
Update donor set age=Age where donor_id = (select donor_id from
blood_details where bloodtest_id=a);
End //
Delimiter ;
Delimiter //
Create update_donor_email(in Email varchar(20), in a int)
Begin
Update donor set donor_email=Email where donor_id = (select
donor_id from blood_details where bloodtest_id=a);
End //Delimiter ;
Delimiter //
update_donor_address(in Address varchar(20), in a int)
Begin
Update donor set donor_adress=Address where donor_id = (select
donor_id from blood_details where bloodtest_id=a);
End //
Delimiter ;
Delimiter //
Create procedure update_employee_age(in Age int, in a int)
Begin
Update employee set age=Age where e_id = a;
End //
Delimiter ;
Delimiter //
Create procedure update_employee_address(in Address varchar(30),
in a int)
Begin
Update employee set address=Address where e_id = a;
End //
Delimiter ;
Delimiter //
Create procedure update_employee_post(in post varchar(20), in a int)
Begin
Update employee set e_post = Post where e_id = a;
End //
Delimiter ;
Delimiter //Create procedure update_patient_address(in Address varchar(30),in a
int)
Begin
Update patient set addr=Address where P_id = a;
End //
Delimiter ;
Delimiter //
Create procedure update_patient_email(in Email varchar(20), in a int)
Begin
Update patient set email=Email where P_id = a;
End //
Delimiter ;
Delimiter //
Create procedure update_patient_phone(in phone long,in a int)
Begin
Update patient set phno= phone where P_id = a;
End //
Delimiter ;