搜索到与相关的文章
数据库相关

经常使用时间函数总结

在计算机中,时间通常有三个作用:表示时间、计时和定时。本文将主要介绍一些经常使用的表示时间的函数,以及他们之间的转换,对于其他的使用方法,在兴许中补充。一、基本概念1.世界标准时间(UTC,CoorainatedUniversalTime)是最基本的世界时间标准,其以原子时秒长为基础,在时刻上尽量接近于格林尼治标注年时间(GMT,GreenwichMeanTime),在大多数场合,UTC与GMT等同,仅仅是GMT不再由科学界精确定义。2.本地时间(Loca

系统 2019-08-12 01:54:51 2259

数据库相关

Partitioning: how to split data among multip

Partitioning:howtosplitdataamongmultipleRedisinstances.–RedisPartitioning:howtosplitdataamongmultipleRedisinstances.PartitioningistheprocessofsplittingyourdataintomultipleRedisinstances,sothateveryinstancewillonlycontainasubsetofy

系统 2019-08-12 01:54:14 2259

数据库相关

删除指定名称的所有字段.sql

--要删除的列名DECLARE@fieldnamesysnameSET@fieldname='id'--删除处理DECLARE@commandnvarchar(2000),@whereandnvarchar(2000)SELECT@command=N'ALTERTABLE?DROPCOLUMN'+QUOTENAME(@fieldname),@whereand=N'ANDEXISTS(SELECT*FROMsyscolumnsWHEREid=o.idANDn

系统 2019-08-12 01:51:27 2259

各行各业

数据校验validator 与 DWZ

在做系统时经常会用到数据校验,数据校验可以自己写,也可以用现在成的,现在记录下两种类库使用方法,

系统 2019-08-12 01:33:19 2259

各行各业

Sublime: Unable to find git.exe错误

使用PackageControl安装插件时,如果出现下面的错误提示:Java代码PackageControl:Unabletofindgit.exe.Pleasesetthegit_binarysettingbyaccessingthePreferences>PackageSettings>PackageControl>Settings–Usermenuentry.TheSettings–Defaultentrycanbeusedforreference,

系统 2019-08-12 01:33:01 2259

Python

利用python计算windows全盘文件md5值的脚本

importhashlibimportosimporttimeimportconfigparserimportuuiddeftest_file_md5(file_path):test=hashlib.md5()ifos.path.isfile(file_path):withopen(file_path,"rb")asf:whileTrue:data=f.read(8096)ifnotdata:breakelse:test.update(data)ret=t

系统 2019-09-27 17:55:47 2258

Python

python小课-类与对象笔记

类:理解类最简单的方式:类是一个函数包,类中可以放置变量和函数,然后类中的函数可以很方便的调用变量。使用class来定义一个类#语法:创建一个名为“ClassName”的类,类名一般首字母要大写,():不能丢classClassName():#如定义一个名为'狗'的类,可以写成classDog():#规范:class语句后续的代码块要缩进deffunction1():#定义类中的函数1在类中被定义的函数被称为类的【方法】,描述的是这个类能做什么。我们使用类

系统 2019-09-27 17:55:24 2258

Python

Python ValueError: unexpected

s='[{0},{open({1},r)},{2}]'.format('a','b','c')print('--s--',s)错误:Traceback(mostrecentcalllast):File"D:/Work/test2.py",line12,ins='{0},{open({1},rb)},{2}'.format('a','b','c')ValueError:unexpected'{'infieldname解决方法:不是匹配符号的{}需要双倍写s=

系统 2019-09-27 17:54:36 2258