PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

sqlite_udf_decode_binary> <sqlite_seek
Last updated: Fri, 18 Jul 2008

view this page in

sqlite_single_query

SQLiteDatabase->singleQuery

(No version information available, might be only in CVS)

SQLiteDatabase->singleQuery — Ejecuta una consulta y devuelve o una matriz para una columna o el valor de la primera fila

Descripción

array sqlite_single_query ( resource $manejador_bd , string $consulta [, bool $solo_primera_fila [, bool $decodificar_binario ]] )

Object oriented style (method):

SQLiteDatabase
array singleQuery ( string $consulta [, bool $solo_primera_fila [, bool $decodificar_binario ]] )
Warning

Esta función no está documentada actualmente, solamente se encuentra disponible la lista de parámetros.



add a note add a note User Contributed Notes
sqlite_single_query
oohall AT gmail DOT comMERCIAL
11-Apr-2008 07:38
The previous note by franp at free dot fr appears to be incorrect, some cursory testing showed that DELETE FROM and INSERT INTO queries worked fine so other queries which do not return data should also work. However, if you're looking for a drop in replacement for sqlite_query(), try sqlite_unbuffered_query() as it appears to only execute the first query if more than one is given.
franp at free dot fr
27-Sep-2004 02:42
AFAIK, you cannot use sqlite-single-query for all kind of SQL queries.
If you are lazy and thought you could safely copy-paste your :
<?php $result = $db->sqlite-single-query($sSQL); ?>
straight from one query to the other, whatever is the query as long as it has only one line, you are wrong.

Apparently, sqlite-single-query is limited to queries that return data, that is to SELECT queries.

<?php
$sSQL 
= "DELETE FROM atoms WHERE ID = '8';";

// The following won't work :
$result = $db->singleQuery($sSQL);

// But the following will :
$result = $db->query($sSQL);
?>

sqlite_udf_decode_binary> <sqlite_seek
Last updated: Fri, 18 Jul 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites