[JavaSE实验] JDBC and MySQL
CREATE TABLE IF NOT EXISTS Authors(Id INT PRIMARY KEY AUTO_INCREMENT, Name VARCHAR(25)) ENGINE=InnoDB; CREATE TABLE IF NOT EXISTS Books(Id INT PRIMARY KEY AUTO_INCREMENT, AuthorId INT, Title VARCHAR(100) KEY(AuthorId) REFERENCES Authors(Id) ON DELETE CASCADE) ENGINE=InnoDB; CREATE TABLE IF NOT EXISTS Testing(Id INT) ENGINE=InnoDB; CREATE TABLE IF NOT EXISTS Images(Id INT PRIMARY KEY AUTO_INCREMENT It creates four database tables, Authors, Books, Testing and Images. Three tables are of InnoDB type. InnoDB databases support foreign key constraints and transactions. We place a foreign key constraint0 码力 | 23 页 | 2.52 MB | 1 年前3ThinkJS 2.0 中文文档
��������������� API -> model� ���������������������������� Mysql �� InnoDB � BDB ������������ Mysql ����������������� ����� InnoDB � BDB� SQLite ������� ������ startTrans � commit � rollback 3 ��������� PRIMARY KEY (`id`), UNIQUE KEY `cookie` (`cookie`), KEY `expire` (`expire`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; SQL redis Session Session �� � � 2.0.6 ������� adapter ��� �� Cookie0 码力 | 238 页 | 1.87 MB | 1 年前3ThinkJS 3.0 中文文档
PRIMARY KEY (`id`), UNIQUE KEY `cookie` (`cookie`), KEY `expire` (`expire`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; redis Session 使用 redis 类型的Session需要依赖 think-redis 模块。 如何配置Session 配置文件 模型中更多的操作方式请见相关的 API -> model。 事务 模型中提供了对事务操作的支持,但前提需要数据库支持事务。 Mysql 中的 InnoDB 和 BDB 存储引擎支持事务,如果在 Mysql 下使用事务的话,需要将数据库 的存储引擎设置为 InnoDB 或 BDB。 SQLite 直接支持事务。 使用事务 模型中提供了 startTrans , commit 和 rollback0 码力 | 129 页 | 2.12 MB | 1 年前3ThinkJS 2.1 Documentation
are using supports transaction too. InnoDB and BDB engine of Mysql support transaction, if you need to use transaction in Mysql, must set the engine to InnoDB or BDB. SQLite supports transaction PRIMARY KEY (`id`), UNIQUE KEY `cookie` (`cookie`), KEY `expire` (`expire`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; SQL redis Session Configurate Session export default { type: 'file'0 码力 | 148 页 | 1.69 MB | 1 年前3ThinkJS 2.0 Documentation
are using supports transaction too. InnoDB and BDB engine of Mysql support transaction, if you need to use transaction in Mysql, must set the engine to InnoDB or BDB. SQLite supports transaction PRIMARY KEY (`id`), UNIQUE KEY `cookie` (`cookie`), KEY `expire` (`expire`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; SQL redis Session Configurate Session export default { type: 'file'0 码力 | 141 页 | 1.61 MB | 1 年前3ThinkJS 2.2 Documentation
are using supports transaction too. InnoDB and BDB engine of Mysql support transaction, if you need to use transaction in Mysql, must set the engine to InnoDB or BDB. SQLite supports transaction PRIMARY KEY (`id`), UNIQUE KEY `cookie` (`cookie`), KEY `expire` (`expire`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; The think_ should be replaced with the table prefix in database configuration0 码力 | 156 页 | 2.62 MB | 1 年前3ThinkJS 2.2 中文文档
模型中更多的操作方式请见相关的 API -> model。 事务 模型中提供了对事务操作的支持,但前提需要数据库支持事务。 Mysql 中的 InnoDB 和 BDB 存储引擎支持事务,如果在 Mysql 下使用事务的话,需要将数据库 的存储引擎设置为 InnoDB 或 BDB。 SQLite 直接支持事务。 使用事务 模型中提供了 startTrans , commit 和 rollback PRIMARY KEY (`id`), UNIQUE KEY `cookie` (`cookie`), KEY `expire` (`expire`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 需要将 think_ 改为 db 配置中的数据表前缀。 redis Session 使用 redis 类型的 Session 需要配置 Redis,具体见0 码力 | 277 页 | 3.61 MB | 1 年前3Laravel 3.2 Documentation
the engine on both tables has to be set to InnoDB, and the referenced table must be created before the table with the foreign key. $table->engine = 'InnoDB'; $table->integer('user_id')->unsigned();0 码力 | 139 页 | 1.13 MB | 1 年前3Python3 基础教程 - 廖雪峰
391/531 是为服务器端设计的数据库,能承受高并发访问,同时占用的内存也远 远大于 SQLite。 此外,MySQL 内部有多种数据库引擎,最常用的引擎是支持数据库事 务的 InnoDB。 安装 MySQL 可以直接从 MySQL 官方网站下载最新的 Community Server 5.6.x 版本。 MySQL 是跨平台的,选择对应的平台下载安装文件,安装即可。 /etc/mysql/my.cnf: [client] default-character-set = utf8 [mysqld] default-storage-engine = INNODB character-set-server = utf8 collation-server = utf8_general_ci 重启 MySQL 后,可以通过 MySQL 的客户端命令行检查编码: `idx_email` (`email`), key `idx_created_at` (`created_at`), primary key (`id`) ) engine=innodb default charset=utf8; create table blogs ( `id` varchar(50) not null, `user_id` varchar(50)0 码力 | 531 页 | 5.15 MB | 1 年前3Celery 1.0 Documentation
information about InnoDBs transaction model see MySQL - The InnoDB Transaction Model and Locking [http://dev.mysql.com/doc/refman/5.1/en/innodb-transaction- model.html] in the MySQL user manual. (Thanks0 码力 | 221 页 | 283.64 KB | 1 年前3
共 132 条
- 1
- 2
- 3
- 4
- 5
- 6
- 14