UPDATE FORCES to READ THE TABLE AGAIN
From: Google User (geolocus_at_hotmail.com)
Date: 03/18/04
- Previous message: Samuel Gold: "RE: can I execute DBMS packages with DBI?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 18 Mar 2004 07:25:46 -0800
HI,
Any one noticed behaviour of fetchrow_array.
If I update the table while reading the table in the while loop, the
update forces to read the table again. I get the same value that I
fetched earlier.
BTW: The executing is with transaction and SQL Server db
For Eg:
$sql = $cmd->prepare("SELECT (bla, bla FROM TABLE_X)");
WHILE($sql->fetchrow_array)
{
"UPDATE TABLE_X SET bla=xxx";
}
- Previous message: Samuel Gold: "RE: can I execute DBMS packages with DBI?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]