随笔分类 -  Mysql and Oracle

mysql中查询语句;时间差;空;
摘要:1.查询时间区间; select time_to_sec(timediff('2022-02-18 10:06:00', '2022-01-25 10:49:00')); #时间太大,算的有问题;select timestampdiff(second, '2022-01-25 10:49:00',' 阅读全文

posted @ 2022-04-20 18:16 星空6 阅读(132) 评论(0) 推荐(0) 编辑

navicat premium安装,使用
摘要:一、navicat官网下载,安装 navicat premium 15 安装,激活;参考:https://www.jianshu.com/p/aca31d8f4c5b 官网下载navicat premium 15——安装——安装成功; 下载激活工具Navicat Keygen Patch v5.6. 阅读全文

posted @ 2020-08-21 14:26 星空6 阅读(963) 评论(0) 推荐(0) 编辑

Oracel 之PL/SQL Developer使用
摘要:执行单条sql语句,选中某条sql语句,点击Execute图标 或 F8执行。 使用''(单引号),不能使用""(双引号); 阅读全文

posted @ 2020-08-21 14:25 星空6 阅读(130) 评论(0) 推荐(0) 编辑

PLSQL,sql语句中带有中文的查询条件查询不到数据
摘要:只要简单的添加一个系统变量就ok了 NLS_LANG=AMERICAN_AMERICA.AL32UTF8 具体操作方法:右击“计算机”-“属性”-“高级系统设置”-“环境变量”,在系统变量下,“新建” 变量名:NLS_LANG 变量值:AMERICAN_AMERICA.AL32UTF8 不需要添加到 阅读全文

posted @ 2020-08-21 14:20 星空6 阅读(671) 评论(0) 推荐(0) 编辑

python学习4--python3连mysql增删改查
摘要:前言 pymysql是在Python3.x版本中用于连接MySQL服务器的一个库,Python2中则使用mysqldb。 环境准备 python3.7 使用pip安装PyMySQL pip install pymysql 先使用第三方工具连接mysql数据库,比如navicat连接mysql 连接名 阅读全文

posted @ 2020-08-17 16:30 星空6 阅读(198) 评论(0) 推荐(0) 编辑

Oracle远程连接工具PL/SQL Developer安装及使用
摘要:一、下载plsqldev711.exe安装包,傻瓜式安装; 二、安装成功后,桌面出现PLSQL快捷方式,双击该快捷方式,出现界面的对话框,但是database选项我们没办法进行选择。 原因是我们的机器没有安装oracle client端,要正常的使用PL/SQL Developer程序,我们必须要安 阅读全文

posted @ 2020-07-22 11:33 星空6 阅读(1329) 评论(0) 推荐(0) 编辑

Mysql乐观锁与悲观锁
摘要:参考:https://blog.csdn.net/chenchongg/article/details/88356056 阅读全文

posted @ 2020-04-12 12:35 星空6 阅读(179) 评论(0) 推荐(0) 编辑

阿里云centos7安装mysqlclient,报错mysql_config:command not found
摘要:注: 1.阿里云centos7安装了python2,python3,涉及到python3的使用pip3,python3; 2.centos7下已安装mysql5.7.29; 一、安装mysqlclient,pip3 install mysqlclient,报如下图错误; 二、解决方法,yum ins 阅读全文

posted @ 2020-01-17 11:29 星空6 阅读(1588) 评论(0) 推荐(0) 编辑

阿里云centos7安装mysql 5.7.29
摘要:1.下载,进入mysql官网,查找需要的版本; wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-community-server-5.7.29-1.el7.x86_64.rpm 2.安装mysql包 rpm -ivh mysql-co 阅读全文

posted @ 2020-01-16 22:58 星空6 阅读(1236) 评论(0) 推荐(0) 编辑

python3 根据条件删除mysql数据;
摘要:import pymysqlecshop=pymysql.connect('localhost','root','root','ecshop')curs=ecshop.cursor() #建立游标sql="delete from ecs_user_address where tel='1994502 阅读全文

posted @ 2019-12-26 21:24 星空6 阅读(1089) 评论(0) 推荐(0) 编辑

python3 更新mysql中部分数据;
摘要:import pymysqlecshop=pymysql.connect('localhost','root','root','ecshop')curs=ecshop.cursor()sql="update ecs_user_address set tel='19945020111' where c 阅读全文

posted @ 2019-12-26 21:16 星空6 阅读(1023) 评论(0) 推荐(0) 编辑

python3 根据条件查询mysql数据库中数据;
摘要:import pymysqlecshop=pymysql.connect('localhost','root','root','ecshop')curs=ecshop.cursor()sql="select consignee,email,tel from ecs_user_address wher 阅读全文

posted @ 2019-12-26 21:07 星空6 阅读(2193) 评论(0) 推荐(0) 编辑

python3创建表及表数据;
摘要:创建表,参考代码如下; import pymysqltest=pymysql.connect('localhost','root','root','test1225')curs=test.cursor()curs.execute('drop table if exists xixi')sql=""" 阅读全文

posted @ 2019-12-25 22:34 星空6 阅读(3360) 评论(0) 推荐(0) 编辑

python3连接数据库mysql,并进行查询;python3操作mysql流程图;
摘要:安装navicat for mysql,参考:https://www.jianshu.com/p/2494e02caf63 import pymysqlecshop=pymysql.connect('localhost','root','root','ecshop') #连接数据库cus=ecsho 阅读全文

posted @ 2019-12-24 22:37 星空6 阅读(1933) 评论(1) 推荐(0) 编辑

mysql时间转换
摘要:datetime YYYY-MM-DD HH:MM:SS date YYYY-MM-DD unixstamp 时间戳 10位数字 select UNIX_TIMESTAMP(); select UNIX_TIMESTAMP(NOW());select now();select date("2019- 阅读全文

posted @ 2019-12-24 10:54 星空6 阅读(1277) 评论(0) 推荐(0) 编辑

Centos7安装mysql8
摘要:1. wget https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-community-server-8.0.18-1.el8.x86_64.rpm 2.yum localinstall mysql-community-server-8.0.18- 阅读全文

posted @ 2019-12-09 12:00 星空6 阅读(255) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示