UNIX Socket FAQ

A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

  • Index
  • » C++
  • » How to use sql in C/C++

#1 2009-09-25 02:51 AM

shredder12
Member
Registered: 2009-06-07
Posts: 37

Re: How to use sql in C/C++

Hello people,

        I need to connect to a database and execute regular sql queries. Is there a built in library in C/C++ that deals with it or is there any other possible way to do so??

Offline

#2 2009-09-25 09:25 AM

i3839
Oddministrator
From: Amsterdam
Registered: 2003-06-07
Posts: 2,230

Re: How to use sql in C/C++

That depends on which sql server you're using. Usually they come with a client
library for doing this.

Offline

#3 2009-09-25 09:55 AM

shredder12
Member
Registered: 2009-06-07
Posts: 37

Re: How to use sql in C/C++

I think I would prefer sqlite...
So, how can i manage the database from my c program..??

Offline

#4 2009-09-25 10:13 AM

i3839
Oddministrator
From: Amsterdam
Registered: 2003-06-07
Posts: 2,230

Re: How to use sql in C/C++

Link to the libsqlite libraries and look at the header file for the interface.
And read the docs at http://www.sqlite.org/docs.html.

Offline

#5 2009-09-25 11:02 AM

shredder12
Member
Registered: 2009-06-07
Posts: 37

Re: How to use sql in C/C++

Thanks..

Offline

  • Index
  • » C++
  • » How to use sql in C/C++

Board footer

Powered by FluxBB