摘要: 在存储过程中使用了LOOP .... EXECUTE IMMEDIATE sql END LOOP,循环然后立即执行,导致无法打印报错,通过抛出异常ORA-01012找到应该是会话中断,但查了IDLE又没有做限制,就很奇怪,最后发现有一张表查询就会报出“提交”按钮,怀疑是用了同义词。最后发现果然是 阅读全文
posted @ 2019-05-14 15:52 糖饼好吃 阅读(134) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- from django.http import HttpResponse from django.shortcuts import render_to_response from django.db import connection from django.shortcuts import render from django.views.d... 阅读全文
posted @ 2019-04-23 12:03 糖饼好吃 阅读(798) 评论(0) 推荐(0) 编辑
摘要: use DB_GZFSB2016;DECLARE @tableHTML NVARCHAR(MAX) ;DECLARE @Subject VARCHAR(8000) ; SET @Subject = convert(varchar(10),getdate() - 1,120) +' 作废订单'; SE 阅读全文
posted @ 2018-04-24 17:47 糖饼好吃 阅读(430) 评论(0) 推荐(0) 编辑
摘要: 附上:SQL2005 数据库邮件设置SQL2005 中添加了数据库邮件功能,使用起来还是很方便地。1、打开SQL Server 2005 外围应用配置器,选择“功能的外围应用配置器”,选择“数据库邮件”,勾选“启用数据库邮件存储过程”,点“确定”退出。2、建立发送邮件的Sql server用户,例如 阅读全文
posted @ 2018-04-24 16:21 糖饼好吃 阅读(793) 评论(0) 推荐(0) 编辑
摘要: 1.授权(192.168.2.173)grant replication slave on *.* to 'fs_repl'@'192.168.2.%' identified by 'fsIJNertP';flush privileges;2.导出数据(192.168.2.173)/usr/loca 阅读全文
posted @ 2018-03-15 17:59 糖饼好吃 阅读(147) 评论(0) 推荐(0) 编辑
摘要: Linux下安装Python3.6和第三方库 如果本机安装了python2,尽量不要管他,使用python3运行python脚本就好,因为可能有程序依赖目前的python2环境, 比如yum!!!!! 不要动现有的python2环境! 一、安装python3.6 1. 安装依赖环境 # yum -y 阅读全文
posted @ 2018-01-12 10:05 糖饼好吃 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 111 阅读全文
posted @ 2018-01-09 18:00 糖饼好吃 阅读(433) 评论(0) 推荐(0) 编辑
摘要: 算法的思想:找到离目标最近的K个值,如k=3,最近的3个值为A,B,B,那么目标就被分类为B 阅读全文
posted @ 2018-01-09 17:04 糖饼好吃 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 《Spark快速大数据分析》笔记 from pyspark import SparkConf, SparkContextconf = SparkConf().setMaster("local").setAppName("My App")sc = SparkContext(conf = conf) p 阅读全文
posted @ 2017-12-05 10:17 糖饼好吃 阅读(764) 评论(0) 推荐(0) 编辑
摘要: group_concat函数:用来将多行聚集成一行 例如:有一张表叫user name 小红 小蓝 小黄 select group_concat(name) from user 查出的结果是 小红,小蓝,小黄 这个函数会经常搭配group by 使用。 BUG在于当你group_concat和uni 阅读全文
posted @ 2017-11-28 10:27 糖饼好吃 阅读(145) 评论(0) 推荐(0) 编辑