摘要:
条件查询: -- 查询name = '测试' 或 email="test.com" 和id=1 select * from db where (name = '测试' or email="test.com") and id=1; -- 查找id在(1,2,3) select * from db wh 阅读全文
摘要:
创建数据库: CREATE DATABASE 数据库名; 删除数据库: drop database 数据库名; 创建数据表: CREATE TABLE table_name (列名 列的类型); ## 例子: create table test( id int not null primary ke 阅读全文
摘要:
环境:mysql(5.7.17)+boost(1_59_0) 关闭防火墙(firewalld): systemctl stop firewalld systemctl enable firewalld 关闭SeLinux: vim /etc/selinux/config SELINUX=disabl 阅读全文
摘要:
""" 需求: 读取text.csv文件中的内容,写入数据库中 """" 建表: mysql> create table message( -> id int not null primary key auto_increment, -- 将id设置为主键+自增+不为空 -> video_id in 阅读全文