データを挿入する IPhone アプリケーションがあります。条件なしですべてのデータをフェッチすると正常に動作し、次のような条件が与えられれば正常に動作します
次のクエリでは、何も表示されません。
NSString *select =
[NSString stringWithFormat:
@"SELECT * from ContentMaster As ml
LEFT JOIN ContentTagging As cat
ON cat.ContentID = ml.ContentID
where cat.ContenTagText= \'%@\'" ,appDelegate.tagInput];
const char *sql = [select UTF8String];
次に、これを使用すると何も表示されず、select * form ContentMaster
追加されたすべてのレコードが表示されます。