sqlite_current

SQLiteResult::current

SQLiteUnbuffered::current

(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0)

sqlite_current -- SQLiteResult::current -- SQLiteUnbuffered::currentFetches the current row from a result set as an array

˵��

sqlite_current ( resource $result [, int $result_type = SQLITE_BOTH [, bool $decode_binary = TRUE ]] ) : array

��������� (method):

SQLiteResult::current ([ int $result_type = SQLITE_BOTH [, bool $decode_binary = TRUE ]] ) : array
SQLiteUnbuffered::current ([ int $result_type = SQLITE_BOTH [, bool $decode_binary = TRUE ]] ) : array

sqlite_current() is identical to sqlite_fetch_array() except that it does not advance to the next row prior to returning the data; it returns the data from the current position only.

����

result

The SQLite result resource. This parameter is not required when using the object-oriented method.

result_type

��ѡ�� result_type �������ܳ������Ҿ������ص�������α�������ʹ�� SQLITE_ASSOC ������ع����������������ֶΣ����� SQLITE_NUM ���������ֵ������SQLITE_BOTH ��ͬʱ���ع�������ֵ������SQLITE_BOTH �Ǵ˺�����Ĭ��ֵ��

decode_binary

�� decode_binary ��������Ϊ TRUE��Ĭ��ֵ��ʱ��PHP �������Щ�� sqlite_escape_string() �����Ķ��������ݡ�ͨ��Ӧ������ֵΪ��Ĭ��ֵ������Ҫ������ʹ�� SQLlite ��Ӧ�ó����������ݽ�����

����ֵ

Returns an array of the current row from a result set; FALSE if the current position is beyond the final row.

�� SQLITE_ASSOC �� SQLITE_BOTH ���ص����������� sqlite.assoc_case ����ѡ���ֵ������Сд��

�μ�