C. SQLite介绍This is an extension for the SQLite Embeddable SQL Database Engine. SQLite is a C library that implements an embeddable SQL database engine. Programs that link with the SQLite library can have SQL database access without running a separate RDBMS process. SQLite is not a client library used to connect to a big database server. SQLite is the server. The SQLite library reads and writes directly to and from the database files on disk.
InstallationRead the INSTALL file, which comes with the package. Or just use the PEAR installer with "pear install sqlite". SQLite itself is already included, You do not need to install any additional software. Windows users may download the DLL version of the SQLite extension here: (php_sqlite.dll). 需求In order to have these functions available, you must compile PHP with SQLite support, or load the SQLite extension dynamically from your php.ini. 资源类型There are two resources used in the SQLite Interface. The first one is the database connection, the second one the result set. Predefined ConstantsThe functions sqlite_fetch_array() and sqlite_current() use a constant for the different types of result arrays. The following constants are defined:
表格 1. SQLite fetch constants
运行时配置这些函数的行为受到全局配置文件 php.ini 的影响。 For further details and definition of the PHP_INI_* constants see ini_set(). 以下是该配置选项的简要解释。
| ||||||||||