Cocoa框架中的NSPredicate用于查询,原理和用法类似于SQL中的where,作用相当于数据库的过滤器。下面是几种常用的方法。1.比较运算符>,=,= 30"]; NSArray *personArray = [people filteredArrayUsingPredicate:liPr...
分类:
其他好文 时间:
2015-09-22 18:32:14
阅读次数:
247
DELETE CM_JOB_SRC_LOGWHERE job_id IN (select job_id from CM_JOB_LOG where job_status = '2000' and job_id in('20150919000114'));delete CM_JOB_STEP_LOGw...
分类:
数据库 时间:
2015-09-22 16:08:52
阅读次数:
183
兹整理如下,供网友参考第一步:关闭mysql服务第二步:新建txt 写入如下内容UPDATE mysql.user SET Password=PASSWORD('blog.const.net.cn') WHERE User='root'; FLUSH PRIVILEGES;保存(如保存在c:/mys...
分类:
数据库 时间:
2015-09-22 16:05:59
阅读次数:
217
下面具体讲讲简单的JOIN的用法了。首先我们假设有2个表A和B,他们的表结构和字段分别为:表A:IDName1Tim2Jimmy3John4Tom表B:IDHobby1Football2Basketball2Tennis4Soccer1. 内联结:Select A.Name, B.Hobby from A, B where A.id = B.id,这是隐式的内联结,查询的结果是:NameHobb...
分类:
数据库 时间:
2015-09-22 10:21:55
阅读次数:
201
TRUNCATE TABLE 在功能上与不带 WHERE 子句的 DELETE 语句相同:二者均删除表中的全部行。但 TRUNCATE TABLE 比 DELETE 速度快,且使用的系统和事务日志资源少。 DELETE 语句每次删除一行,并在事务日志中为所删除的每行记录一项。TRUNCATE TAB...
分类:
其他好文 时间:
2015-09-22 10:04:51
阅读次数:
127
exists:用法:select * from table1 where exists (select * from table2 where table1.id = table2.id )返回table1中和table2中id相同的记录(双重循环)结果和in语法一样,思想不一样,in:select...
分类:
数据库 时间:
2015-09-21 23:49:21
阅读次数:
534
1 题目:Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted ...
分类:
其他好文 时间:
2015-09-21 23:41:58
阅读次数:
176
DescriptionThe game “The Pilots Brothers: following the stripy elephant” has a quest where a player needs to open a refrigerator.There are 16 handles ...
分类:
其他好文 时间:
2015-09-21 21:10:00
阅读次数:
293
1.SQL Server2008基本服务及功能2.管理SQL Server2008安全:登录、权限、数据库用户、管理角色、服务器角色、管理数据库角色。3.数据库管理、表管理(临时表和系统表、列值属性)3.Transact-SQL:select from where order by group by...
分类:
数据库 时间:
2015-09-21 21:00:55
阅读次数:
225
SELECT A.SNAME, A.SPATH, B.ERR_MSG, B.RTN_DETAIL_MESSAGE FROM CM_SRC A, CM_JOB_SRC_LOG B WHERE B.JOB_ID = '20150921000221' AND B.ERR_CODE IS NOT NU...
分类:
数据库 时间:
2015-09-21 19:29:01
阅读次数:
190