|
LPC Library Functions: db_exec |
|
NAMEdb_exec() - execute a SQL query against a database
SYNOPSISmixed db_exec( int handle, string sql )
DESCRIPTIONExecutes the SQL statement passed in 'sql' for the named connection 'handle'. If data needs to be retrieved from this execution, it should be done through db_fetch() after making the call to db_exec(). db_exec() returns the number of rows in result set on success, or an error string on failure. Note that the number of rows on INSERT, UPDATE, and DELETE statements will be zero since there is no result set. Note that this efun is only available if the driver flag PACKAGE_DB is defined. SEE ALSOdb_close(), db_commit(), db_connect(), db_fetch(), db_rollback() |
|
Page design by Frank Jacquette & Tim Hollebeek Copyright (C) 1998 Tim Hollebeek & Frank Jacquette |
|