-
Notifications
You must be signed in to change notification settings - Fork 0
/
MenuOperation.sh
56 lines (47 loc) · 1.14 KB
/
MenuOperation.sh
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
#!/usr/bin/bash
#description for this script: Menu Operation
# if exist DB change directory or no
# because access DB
# if true exit DB
# operation :
# - Create Table
# - List Tables
# - Drop Table
# - Insert into Table
# - Select From Table
# - Delete From Table
# - Update Table
#menu Operation
PS3="Please Select From Operation: "
select operation in "Create Table" "List Tables" "Drop Table" "Insert into Table" "Select From Table" "Delete From Table" "Update Table" "Return to Back Menu"
do
case $operation in
"Create Table")
../../CreateTable.sh
;;
"List Tables")
../../ListTables.sh
;;
"Drop Table")
../../DropTable.sh
;;
"Insert into Table")
../../Insert.sh
;;
"Select From Table")
../../Select.sh
;;
"Delete From Table")
../../DelFromTable.sh
;;
"Update Table")
../../Update.sh
;;
"Return to Back Menu") clear
break
;;
*)
echo "Please ,Choose a Number of operation"
;;
esac
done