2022年10月1日

Oracle 19C学习 - 00a. Oracle12C的安装

摘要: 1. 安装Cent OS 7。 虚拟机硬件配置: CPU 2核心 内存 8G 磁盘 80G 安装过程中: 采用LVM虚拟磁盘。 /boot 500M swap空间 8G / 剩余所有空间。 网络:NAT方式, 静态IP地址,地址为 192.168.x.50。 主机名: oracle12 用户: 新建 阅读全文

posted @ 2022-10-01 19:25 LeoZhangJing 阅读(71) 评论(0) 推荐(0) 编辑

2022年5月23日

Python

摘要: anaconda的环境设置命令 anaconda 包含了conda和pip两个包管理工具。 conda -V / conda --version 查看conda的版本。 conda update anaconda 升级anaconda的版本。 conda update conda 升级conda包管 阅读全文

posted @ 2022-05-23 23:19 LeoZhangJing 阅读(58) 评论(0) 推荐(0) 编辑

2022年4月8日

[MySQL & Python] 10. 脚本文件

摘要: 范例脚本内容 粘贴下面的脚本到data_prepare.sql文件中 ​create table class ( id int not null primary key auto_increment, caption varchar(20) not null) default charset=utf 阅读全文

posted @ 2022-04-08 09:23 LeoZhangJing 阅读(64) 评论(0) 推荐(0) 编辑

2022年4月6日

[MySQL & Python] 09. 账户与授权管理

摘要: MySQL中支持创建多个账户,并给每个账户分配权限。 用户信息存放在mysql库的user表中。 user:用户名 authentication_string:密码 host:允许用户连接数据库的IP地址。localhost等于只允许本地连接。 ​mysql> select user, authen 阅读全文

posted @ 2022-04-06 22:34 LeoZhangJing 阅读(75) 评论(0) 推荐(0) 编辑

[MySQL & Python] 08.表关系与外键约束

摘要: 表和表的关系 单表 一对多 多对多 一对多示例 外键约束: 保证一个列的值必须是其他表中特定列已经存在的值。例如: info.depart_id 的值必须是depart.id中已经存在的值。 新创建表的时候,使用: constraint 外键名称 foreign key 本表名(字段) refere 阅读全文

posted @ 2022-04-06 22:33 LeoZhangJing 阅读(58) 评论(0) 推荐(0) 编辑

[MySQL & Python] 07. 必备的SQL命令

摘要: 数据准备 本节用到两张数据表,他们使用depart_id进行关联。 depart表 + + + | id | title | + + + | 1 | 开发 | | 2 | 运维 | | 3 | 销售 | + + + ​ info表 + + + + + + | id | name | email | 阅读全文

posted @ 2022-04-06 16:06 LeoZhangJing 阅读(43) 评论(0) 推荐(0) 编辑

[MySQL & Python] 06. 使用Python进行数据操作

摘要: Python操作数据库的常用命令#导入模块import pymysql​#连接数据库,得到Connection对象conn = pymysql.connect(host='127.0.0.1',port=3306, user='root', charset='utf8',passwd = "leo1 阅读全文

posted @ 2022-04-06 11:25 LeoZhangJing 阅读(37) 评论(0) 推荐(0) 编辑

[MySQL & Python] 05. MySQL的数据进行增删改查

摘要: 添加数据 insert into 表名 (列名, 列名) values (值1, 值2) --插入一条记录mysql> INSERT INTO test_insert(name, email) values ('Leo', 'leo@qq.com');​--一次插入两条记录mysql> INSERT 阅读全文

posted @ 2022-04-06 10:08 LeoZhangJing 阅读(27) 评论(0) 推荐(0) 编辑

2022年4月4日

[MySQL & Python] 04. 常见数据类型 整型、浮点型、字符串、日期

摘要: 整型 int int[(m) [unsigned] [zerofill] ] 32位 数据范围: -2147483648 ~ 2147483647 int unsigned 无符号整型 0 ~ 4294967295 int (5) zerofill 不满足5位的时候,左边补0 CREATE TABL 阅读全文

posted @ 2022-04-04 22:54 LeoZhangJing 阅读(127) 评论(0) 推荐(0) 编辑

2022年4月1日

[MySQL & Python] 03. 创建和修改表

摘要: 创建表 Mysql中 , -- 为注释 创建表 CREATE TABLE 表名 ( 列名 类型 AUTO_INCREMENT PRIMARY KEY 列名 类型 NOT NULL DEFAULT 默认值, 列名 类型 NULL ) DEFAULT CHARSET = utf8 ; 一般一个表只有一个 阅读全文

posted @ 2022-04-01 23:26 LeoZhangJing 阅读(46) 评论(0) 推荐(0) 编辑

导航