Linux Accept用法舉例簡單說明
最近我照著羅云彬老師的16章TCPECHO那個例子準備改成自己一個程序,我從客戶端發(fā)送了一些數(shù)據(jù)過來,這個程序用recv來接收客戶端,下面一起學習Linux Accept用法。
Linux Accept用法語法如下:
ACCEPTvariable[NUMBER|CHAR|DATE|BINARY_FLOAT|BINARY_DOUBLE][FORMATformat][DEFAULTdefault][PROMPTtext|NOPROMPT][HIDE]
Linux Accept用法例子如下:
ConnectedtoOracle9iEnterpriseEditionRelease9.2.0.1.0
Connectedasscott
SQL>ACCEPTColxPROMPT'Pleaseentercolumnname:'
敲回車后會彈出輸入對話框,輸入sal即可。
SQL>ACCEPTcondPROMPT'Pleaseenterlowestsalaryvalue:'
敲回車后會彈出輸入對話框,輸入一個數(shù)字即可。
SQL>SELECTempno,eName,&ColxFROMEMPWHERE&Colx>&condORDERBY&Colx;
敲回車會看到結果集!
Linux Accept用法Examples:
1. It is generally accepted that smoking is harmful to our health.
吸煙有害健康,這是大家公認的。
2. The police are not allowed to accept rewards.
警察是不允許接受酬金的。
3. They accepted responsibility for the accident.
他們承認了對這次事故所負的責任。
4. Can we accept his account as the true version?
我們能夠相信他說的是實情嗎?
5. The machine only accepts 10p coins.
這機器只收10便士的硬幣.
6. Will you accept a cheque?
你收支票嗎?
7. I cannot accept that he is to blame.
我認為不能責怪他.
8. She offered him a lift and he accepted (it).
她請他坐她的車, 他就領情了.
【編輯推薦】