2013-07-15 ios 题库软件学习总结

来源:互联网 发布:windows字体太大 编辑:程序博客网 时间:2024/04/29 12:15

// 查找表 AllTheQustions 中的History,Series这两个字段的信息    FMResultSet* resultSet = [ database executeQuery:                              [ NSString stringWithFormat: @"select * from AllTheQustions where  History =  \"%@\" AND series = %@" ,                               [ selectedDictionary objectForKey: @"History" ] , [ selectedDictionary objectForKey: @"series" ] ] ];    


1、学会使用sql查询语句,同时搜索两个以上的关键字用“AND”链接。

2、在字符串中加入双引号,通过如例“ xuu\”kidd\"tdah "来表示 翻译为 xuu“kidd”tdah。

3、字符串中打印参数,用方法:

[ NSString stringWithFormat: @"%@ = %@" , a , b ]

原创粉丝点击