<?php // sqlite分页类 class SqliteDB{ public function __construct(){ // 初始化数据库,并且连接数据库 数据库配置 $this->db = new PDO('sqlite:'.dirname(__FILE__).'\log.db'); $this->table_name=$tab; $this->tab_init(); } public function tab_init() { # 表初始化,创建表 $this-&g
sqlite在php中是默认安装的本地小型化数据库,类似于xml的小型数据库,但sqlite功能更强. sqlite.class.php文件: <?php class sqliteDB{ private $sqliteResult; private $error = ''; private $createTable = <<<TABLE /*初始化创建数据表,可创建多个表*/ CREATE TABLE COMPANY (ID INT PRIMARY KEY NOT NULL, NA
sqlite帮助类 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.SQLite; using System.Data; namespace SqliteDemo { /// <summary> /// SQLite 操作类 /// </summary> cla
数据库帮助类 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.SQLite; using System.Data; namespace SqliteDemo { /// <summary> /// SQLite 操作类 /// </summary> class Sq