摘要: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','
阅读全文
摘要:一、navicat官网下载,安装 navicat premium 15 安装,激活;参考:https://www.jianshu.com/p/aca31d8f4c5b 官网下载navicat premium 15——安装——安装成功; 下载激活工具Navicat Keygen Patch v5.6.
阅读全文
摘要:执行单条sql语句,选中某条sql语句,点击Execute图标 或 F8执行。 使用''(单引号),不能使用""(双引号);
阅读全文
摘要:只要简单的添加一个系统变量就ok了 NLS_LANG=AMERICAN_AMERICA.AL32UTF8 具体操作方法:右击“计算机”-“属性”-“高级系统设置”-“环境变量”,在系统变量下,“新建” 变量名:NLS_LANG 变量值:AMERICAN_AMERICA.AL32UTF8 不需要添加到
阅读全文
摘要:前言 pymysql是在Python3.x版本中用于连接MySQL服务器的一个库,Python2中则使用mysqldb。 环境准备 python3.7 使用pip安装PyMySQL pip install pymysql 先使用第三方工具连接mysql数据库,比如navicat连接mysql 连接名
阅读全文
摘要:一、下载plsqldev711.exe安装包,傻瓜式安装; 二、安装成功后,桌面出现PLSQL快捷方式,双击该快捷方式,出现界面的对话框,但是database选项我们没办法进行选择。 原因是我们的机器没有安装oracle client端,要正常的使用PL/SQL Developer程序,我们必须要安
阅读全文
摘要:参考:https://blog.csdn.net/chenchongg/article/details/88356056
阅读全文
摘要:注: 1.阿里云centos7安装了python2,python3,涉及到python3的使用pip3,python3; 2.centos7下已安装mysql5.7.29; 一、安装mysqlclient,pip3 install mysqlclient,报如下图错误; 二、解决方法,yum ins
阅读全文
摘要: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
阅读全文
摘要:import pymysqlecshop=pymysql.connect('localhost','root','root','ecshop')curs=ecshop.cursor() #建立游标sql="delete from ecs_user_address where tel='1994502
阅读全文
摘要:import pymysqlecshop=pymysql.connect('localhost','root','root','ecshop')curs=ecshop.cursor()sql="update ecs_user_address set tel='19945020111' where c
阅读全文
摘要:import pymysqlecshop=pymysql.connect('localhost','root','root','ecshop')curs=ecshop.cursor()sql="select consignee,email,tel from ecs_user_address wher
阅读全文
摘要:创建表,参考代码如下; import pymysqltest=pymysql.connect('localhost','root','root','test1225')curs=test.cursor()curs.execute('drop table if exists xixi')sql="""
阅读全文
摘要:安装navicat for mysql,参考:https://www.jianshu.com/p/2494e02caf63 import pymysqlecshop=pymysql.connect('localhost','root','root','ecshop') #连接数据库cus=ecsho
阅读全文
摘要: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-
阅读全文
摘要: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-
阅读全文