- 浏览: 158064 次
- 性别:
- 来自: 广州
最新评论
-
Young_GK:
帮到忙了,谢谢!
Python实现md5
文章列表
OracleERP11i表结构 - AP
- 博客分类:
- Oracle
ap(应付)
值集名
ap_batches_all
发票批表
AP_APPROVAL_STATUS
发票审批工作流状态
BATCH_ID(PK)
发票批标识符(ID)
Invoice batch identifier
DECLARE @STR VARCHAR(8000)SELECT @STR = ISNULL
相信很多使用plsql dev的朋友多遇到过类此如下面的提示:
Python tips: 什么是*args和**kwargs?
先来看个例子:
def foo(*args, **kwargs):
print 'args = ', args
print 'kwargs = ', kwargs
print '---------------------------------------'
if __name__ == '__main__':
foo(1,2,3,4)
foo(a=1,b=2,c=3)
foo(1,2,3,4, a=1,b=2,c=3)
foo('a', 1, ...
EXEC sp_configure 'show advanced options', 1;GORECONFIGURE;GOEXEC
sp_configure 'xp_cmdshell',1
GO
RECONFIGURE
GO
Refer http://msdn.microsoft.com/en-us/library/ms189631.aspx for
more options.
If you don't enable xp_cmdshell and you issue a command such as the following to get a directory listing of the C: drive:
xp_cmdshell 'dir c:\'
you get the following error message:
Msg 15281, Level 16, State 1, Procedure xp_cmdshell, Line 1
SQL Server blocked access to procedure 's ...
MySQL Performance Blog
- 博客分类:
- MySQL
http://www.mysqlperformanceblog.com/
If you need to change MySQL’s innodb_log_file_size parameter (see How to calculate a good InnoDB log file size), you can’t just change the parameter in the my.cnf file and restart the server. If you do, InnoDB will refuse to start because the existing log files don’t match the configured size.
Yo ...
MySQL安装后需要调整什么
- 博客分类:
- MySQL
原文连接 http://www.mysqlperformanceblog.com/2006/09/29/what-to-tune-in-mysql-server-after-installation/ 面对MySQL的DBA或者做MySQL性能相关的工作的人,我最喜欢问的问题是,在MySQL服务器安装后,需要调整什么,假设是以缺省的设置安装的。 我很 ...
用的分别是time和datetime函数
import time,datetime
# date to str
print time.strftime("%Y-%m-%d %X", time.localtime())
#str to date
t = time.strptime("2009 - 08 - 08", "%Y - %m - %d")
y,m,d = t[0:3]
print datetime.datetime(y,m,d)
输出当前时间:
2009-09-02 23:51:01
2 ...
Python 字符串格式化使用 "字符 %格式1 %格式2 字符"%(变量1,变量2),%格式表示接受变量的类型。简单的使用例子如下:
# 例:字符串格式化
Name = '17jo'
print 'www.%s.com'%Name
>> www.17jo.com
Name = '17jo'
Zone = 'com'
print 'www.%s.%s'%(Name,Zone)
>> www.17jo.com
字符串格式化时百分号后面有不同的格式符号,代表要转换的不同类型,具体的表示符号如下面所示。
格式 ...
Python内置函数
- 博客分类:
- Python
The Python interpreter has a number of functions built into it that are always available. They are listed here in alphabetical order.
查看mysql当前连接数
- 博客分类:
- MySQL
1、查看当前所有连接的详细资料:
mysqladmin -uroot -proot processlist
D:\MySQL\bin>mysqladmin -uroot -proot
processlist
+-----+------+----------------+---------+---------+------+-------+------------------+
| Id | User | Host | db | Command | Time | State | Info |
+-----+----- ...
安装VirtualBox虚拟机增强包
- 博客分类:
- 开发工具
具体步骤如下:
1.启动虚拟机,以root登录,然后选择 “设备”-“安装增强功能”加载增强功能镜像。
2.安装刚加载的镜像
3.安装缺少的包:yum install kernel-devel
4.yum install kerenl*
5.yum install gcc
6.重启
7.安装刚加载的镜像
8.重启
if you run:/etc/init.d/network restart
and occur:Bringing up interface eth0: Error: Connection activation failed: Device not managed by NetworkManag
the solution is:
command fllows:
chkconfig NetworkManager off
chkconfig network on
service NetworkManager stop
service network start
then,ev ...