★ wanayoo — archive 1999 http://fr.php.net/manual/function.sesam-execimm.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to SESAM
Quick Reference
English version of this pageGerman version of this pageJapanese version of this page
Italian version of this pageFrench version of this pageHungarian version of this page
Spanish version of this pageDutch version of this pageBrazilian Portuguese version of this page
Korean version of this pageCzech version of this page
SESAM
* sesam_connect
* sesam_disconnect
* sesam_settransaction
* sesam_commit
* sesam_rollback
* sesam_execimm
* sesam_query
* sesam_num_fields
* sesam_field_name
* sesam_diagnostic
* sesam_fetch_result
* sesam_affected_rows
* sesam_errormsg
* sesam_field_array
* sesam_fetch_row
* sesam_fetch_array
* sesam_seek_row
* sesam_free_result

  Thanks to:
 Chek.com
 easyDNS
 VA Linux Systems

  Related sites:
Apache
MySQL
PostgreSQL
Zend Tech.

  Community:
LinuxFund.org
OSDN
Manual: sesam_execimm
View the source code for this pageSearch the site



Previous page
 sesam_rollback
 Updated
Mon, 08 Jan 2001
sesam_query 
Next page


sesam_execimm

(unknown)

sesam_execimm -- Execute an "immediate" SQL-statement

Description

string sesam_execimm (string query)

Returns: A SESAM "result identifier" on success, or FALSE on error.

sesam_execimm() executes an "immediate" statement (i.e., a statement like UPDATE, INSERT or DELETE which returns no result, and has no INPUT or OUTPUT variables). "select type" queries can not be used with sesam_execimm(). Sets the affected_rows value for retrieval by the sesam_affected_rows() function.

Note that sesam_query() can handle both "immediate" and "select-type" queries. Use sesam_execimm() only if you know beforehand what type of statement will be executed. An attempt to use SELECT type queries with sesam_execimm() will return $err["sqlstate"] == "42SBW".

The returned "result identifier" can not be used for retrieving anything but the sesam_affected_rows(); it is only returned for symmetry with the sesam_query() function.


$stmt = "INSERT INTO mytable VALUES ('one', 'two')";
$result = sesam_execimm ($stmt);
$err = sesam_diagnostic();
print ("sqlstate = ".$err["sqlstate"]."\n".
       "Affected rows = ".$err["rowcount"]." == ".
       sesam_affected_rows($result)."\n");
      

See also: sesam_query() and sesam_affected_rows().


 About Notes


Previous page
 sesam_rollback
 Updated
Mon, 08 Jan 2001
sesam_query 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
France
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.