方法一: Set NoCount On if exists(select * from tempdb..sysobjects where id=object_id('tempdb..##tempEANReport'))Begin drop table ##tempEANReportEndCreate ...
分类:
数据库 时间:
2021-01-19 12:01:00
阅读次数:
0
环境变量设置 设置root用户的密码 端口映射 处理用户远程连接登录异常 create user 'taishi'@'%' identified by 'aransfar@123'; grant all privileges on *.* to 'taishi'@'%' with grant opt ...
分类:
数据库 时间:
2021-01-19 11:46:37
阅读次数:
0
INSERT IGNORE 与INSERT INTO的区别就是INSERT IGNORE会忽略数据库中已经存在 的数据,如果数据库没有数据,就插入新的数据,如果有数据的话就跳过这条数据。这样就可以保留数据库中已经存在数据,达到在间隙中插入数据的目的。 eg: insert ignore into t ...
分类:
其他好文 时间:
2021-01-19 11:46:25
阅读次数:
0
1. 配置双主: 双机名 win89.inno.com win88.inno.com 准备账号 SET SQL_LOG_BIN=0; set password for 'root'@'localhost'='123456'; grant all privileges on *.* to root@' ...
分类:
数据库 时间:
2021-01-18 11:43:38
阅读次数:
0
java.lang.RuntimeException: java.io.IOException: No such file or directory at org.apache.poi.xssf.streaming.SXSSFWorkbook.createAndRegisterSXSSFSheet( ...
分类:
Web程序 时间:
2021-01-18 11:31:01
阅读次数:
0
# 先定义dataframe各列的数据类型 from pyspark.sql.types import *schema = StructType([ StructField("a", NullType(), True), StructField("b", AtomicType(), True), S ...
分类:
其他好文 时间:
2021-01-18 11:29:36
阅读次数:
0
package test;import java.sql.*;public class retrieve { public static void main(String[] args) { try { Class.forName("com.mysql.jdbc.Driver"); } catch ...
分类:
数据库 时间:
2021-01-18 11:27:02
阅读次数:
0
一、EXPLAIN 做MySQL优化,我们要善用 EXPLAIN 查看SQL执行计划。 下面来个简单的示例,标注(1,2,3,4,5)我们要重点关注的数据 type列,连接类型。一个好的sql语句至少要达到range级别。杜绝出现all级别 key列,使用到的索引名。如果没有选择索引,值是NULL。 ...
分类:
数据库 时间:
2021-01-18 11:25:16
阅读次数:
0
##SparkSQL 是什么 ##SparkSQL 初体验 ##Catalyst 优化器 ##Dataset 的特点 ##DataFrame 的作用和常见操作 ##Dataset 和 DataFrame 的异同 ...
分类:
数据库 时间:
2021-01-18 11:03:21
阅读次数:
0
查看MySQL数据库日志 查看mysql数据库日志可以查看对数据库的操作记录。 mysql日志文件默认没有产生,需要做如下配置: sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf 把68,69行前面的#去除,然后保存并使用如下命令重启mysql服务。 sudo s ...
分类:
数据库 时间:
2021-01-18 11:01:39
阅读次数:
0