使用SSMS数据库管理工具修改DEFAULT约束 1、连接数据库、选择数据表-》右键点击-》选择设计。 2、在表设计器窗口-》选中要修改的数据列-》在列属性中找到默认值绑定-》进行修改。 3、点击保存(或者ctrl+s)-》关闭表设计器-》刷新表-》重新打开表设计器查看。 使用T-SQL脚本修改DE ...
分类:
数据库 时间:
2018-09-05 18:03:23
阅读次数:
568
一丶保留decimal指定小数位位数: 将两个类型为int的变量向除,要求结果为decimal类型 1 //测试三 2 int a = 701; 3 int b = 7; 4 double r1 = (double)a / b; 5 decimal r2 = (decimal)a / b; 6 de ...
分类:
其他好文 时间:
2018-09-05 12:50:31
阅读次数:
182
1,装饰器函数 import timedef timer(func): def inner(): start = time.time() func() print(time.time() - start) return inner @timer #==> func1 = timer(func1)de ...
分类:
其他好文 时间:
2018-09-04 10:33:54
阅读次数:
177
#把一个字典扁平化#源字典{‘a‘:{‘b‘:1,‘c‘:2},‘d‘:{‘e‘:3,‘f‘:{‘g‘:4}}}这个题的想法是最终要变成{‘ab‘:1,‘ac‘:2,‘de‘:3,‘def‘:4}这个样子的终字典,想的是能将
分类:
其他好文 时间:
2018-09-03 10:34:28
阅读次数:
169
题目描述 The programming contest named Concours de Programmation Comtemporaine Interuniversitaire (CPCI) has a judging system similar to that of ICPC; con ...
分类:
其他好文 时间:
2018-09-03 02:41:10
阅读次数:
162
以下内容均来自该链接博客: https://www.cnblogs.com/defen/p/5618226.html 常用命令大全 常用的内部命令有MD、CD、RD、DIR、PATH、COPY、TYPE、EDIT、REN、DEL、CLS、VER、DATE、TIME、PROMPT。常用的外部命令有DE ...
完整性约束 用于保证数据的完整性和一致性 KEY POINT: not null 与 default unique primary key auto_increment foreign key 一 not null 与 default 1.是否可空 null空 not null不可空 2.默认值de ...
分类:
数据库 时间:
2018-09-01 12:22:43
阅读次数:
165
有数组:$reta|bc|de|fb|af|e想要得到:a|bc|de|f上菜://去重复,左右对调$arr=array();foreach($retas$key=>$value){$arr[]=$value;$ceilArr=explode("|",$value);$str=$ceilArr[1].‘|‘.$ceilArr[0];foreach($arras$k=>$v){if($v
分类:
其他好文 时间:
2018-08-31 17:12:45
阅读次数:
145
John Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 6000 Accepted Submission(s): 3486 Problem De ...
分类:
其他好文 时间:
2018-08-30 10:59:07
阅读次数:
185
ARM NEON Optimization. An Example Http://hilbert-space.de/?p=22 Since there is so little information about NEON optimizations out there I thought I’d ...
分类:
其他好文 时间:
2018-08-29 18:43:36
阅读次数:
399