sqlite_fetch_column_types

(PHP 5)

sqlite_fetch_column_types --  Возвращает массив, содержащий информацию о типах полей в таблице

Описание

resource sqlite_fetch_column_types ( string table_name, resource db )

Внимание

К настоящему времени эта функция еще не была документирована; для ознакомления доступен только список аргументов.



sqlite_fetch_column_types
enthusiast
06-Mar-2005 08:19
If I (OO version) try to add the contant SQLITE_ASSOC, (exactly as listed in the above example) it generates the following error:

SQLiteDatabase::fetchColumnTypes() expects exactly 1 parameter, 2 given in C:\....

If I remove it completely, it returns the associative array I expected.
10-Jan-2005 03:01
The problem with the permanently locked database file when using this function still seems to exist in PHP 5.0.3 (tested on win32).

However, you can get all the information you need about the fields of a table by using this query:

PRAGMA table_info(name_of_your_table);
hugo_pl at users dot sourceforge dot net
17-Aug-2004 09:55
This function, and the OO version, is bugged in PHP <= 5.0.1, locking the database until you restart the webserver.

http://bugs.php.net/bug.php?id=29476

<sqlite_fetch_arraysqlite_fetch_object>
 Last updated: Tue, 15 Nov 2005