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