SELECT(2)
-
2022-04-22 Shell_script_4
IF #!/bin/bash read -p "enter income amount" Income read -p "enter expenses aount" Expense let Net=$Income-$Expense if [ "$Net" -eq "0" ] then echo "Income and expences are equal" elif [ "$Net" -gt "0" ] then echo "profit : " $Net else echo "Loss : " $Net fi CASE case word in pattern1) command-list1 ;; pattern2) command-list2 ;; patternN) command-listN ;; esac checked against word for match may ..
2022.04.22 -
[DB] DML
INSERT SHOW TABLES; USE opentutorials; DESC topic; +-------------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------------+--------------+------+-----+---------+----------------+ | id | int | NO | PRI | NULL | auto_increment | | title | varchar(100) | NO | | NULL | | | description | text | YES | | NULL | | | created | datetime | NO | ..
2022.04.07