• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Connecting to SQLITE
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Connecting to SQLITE


  • Subject: Re: Connecting to SQLITE
  • From: Andrew Farmer <email@hidden>
  • Date: Thu, 30 Nov 2006 04:56:02 -0800

On 30 Nov 06, at 03:35, Namrata Dwivedi wrote:
As suggested to me I have downloaded and included the SMySql framework in my
project, now I am trying to connect to the SMySql database.


For that I am writing the following piece of code but I am not able to
retrieve the data from the database.
MCPConnection *theConnec = [MCPConnection alloc];
MCPResult *theRes;
NSDictionary *theDict;
NSArray *theColNames;
theConnec = [theConnec initToHost:@"" withLogin:@"" password:@""
usingPort:0]; [theConnec selectDB:@"testdb"]; // Database
name I have created is Testdb NSLog(@"connection",theConnec);
theRes = [theConnec queryString:@"select * from login"]; // login is
the name of the table I have created
theColNames = [theRes fetchFiedlsName];


Can you help me in connecting to the Sqlite database.
Its quite urgent

SQLite isn't MySQL - you can't use it like that. You will need to use the SQLite library, or a framework which wraps it. No substitutions.
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Connecting to SQLITE (From: "Namrata Dwivedi" <email@hidden>)
 >Re: Connecting to SQLITE (From: Chris Hanson <email@hidden>)
 >Re: Connecting to SQLITE (From: "Namrata Dwivedi" <email@hidden>)

  • Prev by Date: Re: Connecting to SQLITE
  • Next by Date: NSTreecontroller outline view selectedObjects is empty
  • Previous by thread: Re: Connecting to SQLITE
  • Next by thread: Re: Connecting to SQLITE
  • Index(es):
    • Date
    • Thread