SQLStatement Constructor | |
Construct a SQLStatement object.
Namespace:
VO
Assembly:
VOSQLClasses (in VOSQLClasses.dll) Version: 2.19
Syntax CONSTRUCTOR(
cSQLStatement,
oSQLConnection
) CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public SQLStatement(
Usual cSQLStatement = default,
Usual oSQLConnection = default
)
Request Example
View SourceParameters
- cSQLStatement (Optional)
- Type: Usual
The statement text. - oSQLConnection (Optional)
- Type: Usual
The SQL connection indicating where the table can be found. If not specified, the current default connection is used, if any; if none is defined, the system asks the end user to log on to a database.
Examples
The following example executes the SQL statement:
1oConn := SQLConnection{Source,UserId,Pswd}
2ACCEPT "Enter Simple SQL Statement:" TO cStatement
3oStmt := SQLStatement{cStatement,oConn}
4
5oStmt:Execute()
See Also