0
while [ 1 ]
do
echo "Select number from the following options"
echo "1 - Data Base Menu
2 - Customer Sale
3 - Quit"
read opt
case $opt in
"1")
managementMenu
;;
"2") echo " Enter Sale Code"
read eCode
echo " Enter client Code: "
read cCode
echo " Enter product "
read product
echo " Enter Quantity "
read QTY
db2 "update Sales set QTY = $QTY where SNR = '$eCode' and PNR = '$product'"
**db2 "update Histroy set QTY = $QTY where CCN = '$cCode' and PNR = '$product'"**
;;
"3")
break
;;
*) echo invalid option;;
esac
done
# cant use select * to display
你有問題嗎? –
我不斷收到錯誤,當我嘗試更新我的歷史記錄表使用此行db2「更新Histroy設置QTY = $ QTY其中CCN ='$ cCode'和PNR ='$ product'」我得到的錯誤是標題 –
可能問題是你的「歷史」拼寫錯誤? –