Web студия "GrandView"
  Главная   Написать Контакты
   
   
О проекте
Руководство php
 

sqlite_changes

(PHP 5)

sqlite_changes --  Возвращает количество записей, которые были изменены последним SQL запросом

Описание

int sqlite_changes ( resource dbhandle )

Возвращает количество записей, которые были изменены последним SQL запросом к базе данных dbhandle.

Смотрите также

sqlite_num_rows()



add a note add a note User Contributed Notes
sqlite_changes
bermi ferrer:at-akelos dotCom
28-Sep-2005 06:02
When counting deleted records from the database, I realized that sqlite_changes() will return 0 if you are deleting all the records without including a WHERE clause.

So after "DELETE FROM users" sqlite_open() will print 0 even if rows where deleted, but if you use "DELETE FROM users WHERE 1" you will get the right result.

I had this problem on versions 5.0.4 and 4.4.0 under Windows servers.

sqlite_close> <sqlite_busy_timeout
Last updated: Fri, 26 Jan 2007
 
 
Новости
11 июля 2007
Сайт запущен
© 2007 info@grandviewstudio.com

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 324

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 330
Z058440144362 Z348613067571