MySQL外键设置中的的属性含义:
cascade方式
在父表上update/delete记录时,同步update/delete掉子表的匹配记录
set null方式
在父表上update/delete记录时,将子表上匹配记录的列设为null
要注意子表的外键列不能为not null
No action方式
如果子表中有匹配的记录,则不允许对父表对应候选键进行updat...
分类:
数据库 时间:
2015-01-21 22:38:58
阅读次数:
201
题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=1166线段树功能:update:单点增减 query:区间求和#pragma comment(linker,"/STACK:102400000,102400000")#include #include #...
分类:
其他好文 时间:
2015-01-21 22:19:28
阅读次数:
160
题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=1754线段树功能:update:单点替换 query:区间最值模板裸题。。。#pragma comment(linker,"/STACK:102400000,102400000")#include #in...
分类:
其他好文 时间:
2015-01-21 21:57:29
阅读次数:
185
centos:http://www.centos.org/download/ download:https://about.gitlab.com/downloads/ update:https://gitlab.com/gitlab-org/omnibus-gitlab/blob/mast...
分类:
其他好文 时间:
2015-01-21 19:49:40
阅读次数:
172
1:update 时做检查使用update mw_contract set payTimes=(case when payTimes>0 then payTimes-1else payTimes end)where contractNo='2015001';2:select时使用select cas...
分类:
数据库 时间:
2015-01-21 19:32:11
阅读次数:
146
In this Document Symptoms Changes Cause Solution ReferencesAPPLIES TO:Oracle Receivables - Version 12.1.3 and laterInformation in this document applies to any platform.SYMPTOMSAttempting to update the...
分类:
其他好文 时间:
2015-01-21 16:36:03
阅读次数:
99
方法1:用SETPASSWORD命令mysql-uroot-p
SETPASSWORDFOR‘root‘@‘localhost‘=PASSWORD(‘newpass‘);方法2:用mysqladminmysqladmin-urootpassword"newpass"如果root已经设置过密码,采用如下方法:mysqladmin-uroot-poldpasspassword"newpass"方法3:用UPDATE直接编辑user表mysql-..
分类:
数据库 时间:
2015-01-21 11:53:00
阅读次数:
241
1、check表里添加update_time字段ALTERTABLE`check`ADD`update_time`VARCHAR(50)CHARACTERSETutf8COLLATEutf8_general_ciNULLCOMMENT‘上一次更新的时间‘AFTER`operator`;2、
分类:
数据库 时间:
2015-01-21 10:21:48
阅读次数:
186
ios项目开发中常用的svn命令
1.文件的状态的含义:
A:add,新增文件
A+:修改图片资源名称
C:conflict,冲突
D:delete,删除
M:modify,本地已经修改
G:modify and merGed,本地文件修改并且和服务器的进行合并
U:update,从服务器更新
R:replace,文件被替换
I:ignored,忽略
?:不识别,需要手动ad...
分类:
移动开发 时间:
2015-01-21 09:04:08
阅读次数:
268
uevent可以实现内核通知上层的一种机制,最常见的电池状态的变化就是kernel uevent通知的,每次百分比或者其他的变化通过power_supply_changed通知上层update;
每个device下面都有kobj,找到device就可以通过kobject_uevent_env 通知android了;
以拔出T卡为例,内核通知上层。这里的T卡是一种sdio设备,普通T...
分类:
移动开发 时间:
2015-01-20 22:18:00
阅读次数:
341