Re: Need help with SQLite
Re: Need help with SQLite
- Subject: Re: Need help with SQLite
- From: Reimar Metzen <email@hidden>
- Date: Mon, 26 Jan 2004 22:53:49 +0100
Hi,
i think you have to use performQuery: query - performQueryWithFormat is
only if you want to replace a formatstring in the string query with
some values, like
[bla performQueryWithFormat: @"time: %@", time]
Reimar
Am 26.01.2004 um 22:21 schrieb Sascha Kuehn:
>
hi,
>
>
i have a problem sqlite.
>
>
here is a code snippet:
>
>
>
-----------------------------------------------------------------------
>
-
>
------
>
+(NSArray*)SQLquery:(NSString*)query
>
{
>
SQLDatabase* database;
>
SQLResult* result;
>
SQLRow* row;
>
NSEnumerator* rowIterator;
>
>
database = [SQLDatabase databaseWithFile:@"test.db"];
>
[database open];
>
result = [database performQueryWithFormat:query];
>
-----------------------------------------------------------------------
>
-
>
------
>
>
>
i need the 'result' as an 2D array. but i down know how to.
>
i hope you can help me out.
>
>
sascha
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
[demime 0.98b removed an attachment of type image/jpeg which had a name of upload_73374.jpg]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.