-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDatabase_CRUD_operation_Menu.sh
64 lines (59 loc) · 1.72 KB
/
Database_CRUD_operation_Menu.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
56
57
58
59
60
61
62
63
64
#!/bin/bash
# author : Abdelrahman Elmansey
#################### Database CRUD operation Menu ###################
############### Show the select option ################
echo " "
PS3="============ Choise Operation ============ : "
select choise in "Create Table" "List Tables" "Drop Table" "Insert into Table" "Select From Table" "Delete From Table" "Update Table" "Exit" "Back to Main Menu"
do
case $choise in
"Create Table")
source ../../CreateTable.sh
;;
"List Tables")
source ../../ListTables.sh
;;
"Drop Table")
source ../../DropTable.sh
;;
"Insert into Table")
source ../../InsertIntoTable.sh
;;
"Select From Table")
source ../../SelectFromTable.sh
;;
"Delete From Table")
source ../../DeleteFromTable.sh
;;
"Update Table")
source ../../UpdateFromTable.sh
;;
"Back to Main Menu")
cd ../
PS3="============ Choise Operation ============ : "
select choise in "Create Database" "List Databases" "Connect To Databases" "Drop Database" "Exit"
do
case $choise in
"Create Database")
source ../CreateDatabase.sh
;;
"List Databases")
source ../ListDatabase.sh
;;
"Connect To Databases")
source ../ConnectToDatabase.sh
;;
"Drop Database")
source ../DropDatabase.sh
;;
"Exit")
exit;;
*)
echo -e "${red}invalid choise try again${clear}" ;;
esac
done
;;
"Exit") exit;;
*) echo -e "${red}invalid choise try again${clear}" ;;
esac
done