Ica-13-Dms Lab7
Ica-13-Dms Lab7
Ica-13-Dms Lab7
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> delimiter $$
mysql> drop trigger if exists facultydata1 $$
Query OK, 0 rows affected, 1 warning (0.01 sec)
mysql> delimiter ;
mysql> Insert INTO faculty
-> Values(7,"bob","ENTC",4);
Query OK, 1 row affected (0.10 sec)
mysql> delimiter $$
mysql> drop trigger if exists facultydata2 $$
Query OK, 0 rows affected, 1 warning (0.00 sec)
mysql> delimiter ;
mysql> Select * from faculty;
+------+------+------------+------------+
| id | name | dept | experience |
+------+------+------------+------------+
| 1 | aa | IT | 3.5 |
| 2 | ccc | Computer | 9 |
| 3 | ddd | Computer | 2.9 |
| 4 | ggg | Mechanical | 4 |
| 5 | zzz | IT | 6 |
| 6 | bob | ENTC | 4 |
| 7 | bob | ENTC | 4 |
| 8 | rob | IT | 5 |
+------+------+------------+------------+
8 rows in set (0.00 sec)
mysql>