select @@tx_isolation; //查看隔离级别set session transaction isolation level read uncommitted; //设置读未提交级别start transaction; //打开事务rollback; //回滚commit; //提交...
分类:
数据库 时间:
2015-01-30 19:15:27
阅读次数:
172
获取天气信息#encoding:UTF-8import urllib.requestimport redef getHtml(url): page=urllib.request.urlopen(url) html=page.read() page.close() ...
分类:
编程语言 时间:
2015-01-30 19:01:45
阅读次数:
166
JMS (Java Message Service) JMS (Java Message Service) is a Java API that allows you to create, send, receive, and read messages. It also mandates that messaging is asynchronous and has specific ele...
分类:
其他好文 时间:
2015-01-30 16:20:14
阅读次数:
138
1、mysql的默认事务的隔离级别:可重复读取(repeatable read);2、sqlserver的默认事务的隔离级别:提交读取(read committed);3、oracle的默认事务的隔离级别:提交读取(read committed).
分类:
数据库 时间:
2015-01-30 15:01:09
阅读次数:
197
昨日,公司php调用redis报错:readerroronconnection 2015-01-2923:59:050.13330000,redis存放的是用户session。 在网上查询,大家说法都比较一致,说是php.ini文件中的一个配置项导致: default_socket_timeout....
分类:
其他好文 时间:
2015-01-30 14:51:56
阅读次数:
1108
1 #coding:utf-8 2 import urllib2 3 import re 4 import threading 5 6 #图片下载 7 def loadImg(addr,x,y,artName): 8 data = urllib2.urlopen(addr).read()...
分类:
编程语言 时间:
2015-01-30 14:37:43
阅读次数:
150
org.springframework.dao.TransientDataAccessResourceException: ### Error updating database. Cause: java.sql.SQLException: Connection is read-only. Que....
分类:
数据库 时间:
2015-01-30 14:33:29
阅读次数:
255
import re
import urllib
import os
def rename(name):
name = name + '.jpg'
return name
def getHtml(url):
page = urllib.urlopen(url)
html = page.read()
return html
def getImg(ht...
分类:
编程语言 时间:
2015-01-30 09:08:37
阅读次数:
211
The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is read off as"tw...
分类:
其他好文 时间:
2015-01-30 06:37:50
阅读次数:
188
RWeka(http://cran.r-project.org/web/packages/RWeka/index.html) :1) 数据输入和输出WOW():查看Weka函数的参数。Weka_control():设置Weka函数的参数。read.arff():读Weka Attribute-Rel...
分类:
编程语言 时间:
2015-01-29 22:17:53
阅读次数:
187