这里有个版本坑要提前说: MySQL 8.0 的默认值是 utf8mb4 和 utf8mb4_0900_ai_ci。所以同一句 create database db1; ,在 5.7 和 8.0 上建出来的库是不一样的。跨版本迁移时如果发现中文或 emoji 乱码,先来这里对一眼默认值。
引言 这周集中学习 MySQL 数据库,从基础概念到多表查询、建表约束、Python 对接数据库,整体知识点量大。课堂跟着演示看示例代码能够看懂,但自己独立处理业务场景时,经常踩各种细节坑。本篇记录核心知识点,同时整理实操步骤与个人学习小方法。
Creating a database in SQL means running a CREATE DATABASE statement (or, in SQLite, opening a file). The statement is nearly identical across systems, but the options after the name, the privilege ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results