1.维护数据库的完整性、一致性、你喜欢用触发器还是自写业务逻辑?为什么?尽可能用约束(包括CHECK、主键、唯一键、外键、非空字段)实现,这种方式的效率最好;其次用触发器,这种方式可以保证无论何种业务系统访问数据库都能维持数据库的完整性、一致性;最后再考虑用自写业务逻辑实现,但这种方式效率最低、编程...
#include
#include
int num[3],tot,n,f;
char s[3][100],ans[3][100];
int check()
{
char str[100];
int a=0,b=0,c;
for(int i=0;i<num[0];i++)
a=a*10+s[0][i]-'0';
for(int i=0;i<num[1];i++)
b=b*10+s...
分类:
其他好文 时间:
2015-08-07 14:50:24
阅读次数:
116
eclipse中使用maven插件的时候,运行run as maven build的时候报错 -Dmaven.multiModuleProjectDirectory system propery is not set.?Check $M2_HOME environment variable and mvn script match. ?应该是版本...
分类:
其他好文 时间:
2015-08-07 09:44:59
阅读次数:
207
【101-Symmetric Tree(对称树)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题 Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, this binary tree is symmetr...
分类:
编程语言 时间:
2015-08-07 08:19:16
阅读次数:
163
【100-Same Tree(两棵树是否相同)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题 Given two binary trees, write a function to check if they are equal or not.
Two binary trees are considered equal if they are structural...
分类:
编程语言 时间:
2015-08-07 08:18:10
阅读次数:
185
#-*-coding:utf-8-*-
__author__=‘magicpwn‘
importsubprocess
importsys
reload(sys)
sys.setdefaultencoding(‘utf-8‘)
#执行命令的两个函数,新建进程执行系统命令
s=subprocess.check_call(‘dir‘,shell=True)
p=subprocess.call(‘dir‘,shell=True)
prints,p
#执行命令并捕获..
分类:
编程语言 时间:
2015-08-07 07:12:25
阅读次数:
241
// Validates that the input string is a valid date formatted as "mm/dd/yyyy" function isValidDate(dateString) { // First check for the patt...
分类:
编程语言 时间:
2015-08-06 20:02:47
阅读次数:
145
SQL Server 触发器触发器是一种特殊类型的存储过程,它不同于之前的我们介绍的存储过程。触发器主要是通过事件进行触发被自动调用执行的。而存储过程可以通过存储过程的名称被调用。Ø 什么是触发器 触发器对表进行插入、更新、删除的时候会自动执行的特殊存储过程。触发器一般用在check约束更加复杂的约...
分类:
数据库 时间:
2015-08-06 16:28:44
阅读次数:
139
$(document).on('click','#check_all_id',function(){ var isChecked = $(this).prop('checked'); $(':checkbox').prop('checked', isChecked);});
分类:
其他好文 时间:
2015-08-06 12:50:23
阅读次数:
77
在这里要注意interrupt()方法,在线程正常运行的时候,调用 interrupt() 并不能结束线程。
正确的结束线程的姿势如下:
public volatile boolean stop = false;
//volatile : every time use this variable ,system will check this value
private int i =0...
分类:
编程语言 时间:
2015-08-06 11:11:34
阅读次数:
144