rollback()  I/O file objects

Chapter 5: General Objects and Methods

setStmt()

Description

Establishes a new statement object as the current statement object.

Syntax

setStmt(short StmtID); or
setStmt(string StmtName);

Parameter

Description

StmtID

Short integer specifying the statement object ID number.

StmtName

String containing the statement object name.

Return value

Integer. Returns a positive integer if successful, and zero or negative integer, if failed.

Usage

Pointer to object

Object

pdbi->setStmt(“Stmt1”);pdbi->exec()

or

pdbi->setStmt(1)pdbi->exec()

my_dbi.setStmt(“Stmt1”);my_dbi.exec()

or

my_dbi.setStmt(1);my_dbi.exec()





Copyright © 2005. Sybase Inc. All rights reserved. I/O file objects

View this book as PDF