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

search for in the

SQLite3Result::fetchArray> <SQLite3Result::columnName
[edit] Last updated: Fri, 24 Jun 2011

view this page in

SQLite3Result::columnType

(PHP 5 >= 5.3.0)

SQLite3Result::columnTypeباز گرداندن نوع ستون nام

Description

public int SQLite3Result::columnType ( int $column_number )

باز گرداندن نوع ستون nام مشخص شده با column_number.

Parameters

column_number

اندیس عددی مبنای صفر ستون.

Return Values

بازگرداندن اندیس نوع داده ستون مشخص شده با column_number (یکی از SQLITE3_INTEGER، SQLITE3_FLOAT، SQLITE3_TEXT، SQLITE3_BLOB، یا SQLITE3_NULL).



add a note add a note User Contributed Notes SQLite3Result::columnType - [1 notes]
up
1
phpnotes at carwash dot org
1 year ago
This function never returns any value other than 5, indicating SQLITE3_NULL.  SQLite 3 doesn't have column types, it has column affinities.  Different rows of the same table (and rows resulting from a SELECT) can hold values of different types.  Therefore this API cannot return anything useful, and the method appears to be using SQLITE3_NULL as a placeholder.

The function in useless and should be removed or marked as deprecated in future releases, so as not to give any programmer the false idea that the values returned are useful.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites