Content
私はテーブルにデータを持っているiPhoneアプリケーションを持っていて、これを取得する方法で最近追加されたコンテンツをクエリで選択したいContentAddedDateTime
日時の列があります。ContentAdded
ContentTable
これはテーブル構造です:
NSInteger contentID;
NSString*categoryID;
NSString*topicID;
NSString*contentType;
NSString*contentTitle;
NSString*contentAddedByUserID;
NSString*contentDescription;
NSString*contentFileName;
NSString*categoryName;
NSString*topicName;
NSString*contentSavedFileLocation;
NSString*contentSize;
NSString*contentAddedDateTime;
開始日と終了日を使用できるというリンクを取得しましたが、列は 1 つしかありませんContentAddedDateTime
。
select = [[NSString alloc] initWithFormat:@"select * FROM ContentMaster Where ContentAddedDateTime='%@'",currentDateTime];