SQLStatement Constructor
|
|
构造一个 SQLStatement 对象。
命名空间:
VO
程序集:
VOSQLClasses (在 VOSQLClasses.dll 中) 版本:2.24 GA
Syntax CONSTRUCTOR(
cSQLStatement,
oSQLConnection
) CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public SQLStatement(
Usual cSQLStatement = default,
Usual oSQLConnection = default
) Request Example
查看代码Parameters
- cSQLStatement (Optional)
- 类型:Usual
语句文本。 - oSQLConnection (Optional)
- 类型:Usual
指示表的位置的 SQL 连接。如果未指定,将使用当前默认连接(如果有的话);如果未定义任何连接,系统将要求最终用户登录到数据库。
Examples
以下示例执行了 SQL 语句:
1oConn := SQLConnection{Source,UserId,Pswd}
2ACCEPT "Enter Simple SQL Statement:" TO cStatement
3oStmt := SQLStatement{cStatement,oConn}
4
5oStmt:Execute()
See Also