首页 > 数据库技术 > 详细

SQL 语句记录

时间:2015-05-31 20:04:33      阅读:213      评论:0      收藏:0      [点我收藏+]

1.创建一个table @"create table rockTB(myId integer primary key autoincrement not null, time varchar(128) , body varchar(1024))"];

2.查询 

 FMResultSet * result = [sDB executeQuery:@"select * from rockTB"];

    while ([result next])

    {

        NSString * time = [result stringForColumn:@"time"];

        NSString * body = [result stringForColumn:@"body"];

        int myId = [result intForColumn:@"myId"];

        

        NSLog(@"time:%@ body:%@ myId:%d",time,body,myId);

    }

SQL 语句记录

原文:http://www.cnblogs.com/rollrock/p/4542506.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!