Linux Accept用法举例简单说明


最近我照着罗云彬老师的16章TCPECHO那个例子准备改成自己一个程序,我从客户端发送了一些数据过来,这个程序用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:'
敲回车后会弹出输入对话框,输入一个数字即可。

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).
   她请他坐她的车, 他就领情了.

相关内容

    暂无相关文章