C with database

  • Thread starter sreenivasan alakappan
  • Start date
S

sreenivasan alakappan

Hello,
I want to know if it possible to write relational datebase
application in C. I have so far seen File IO(Flat files). If so,
please give me pointers on doing so.I think I did not go off the topic
in this group. If so, please excuse me and direct me to the correct
group.

Thanks,
Sreeni.
 
M

Malcolm

sreenivasan alakappan said:
I want to know if it possible to write relational datebase
application in C.
The famous databases systems are probably written in C.

You can implement a simple database using the stdio functions, in particular
fseek() in conjunction with an index for fast access.

Having said that, to get more than the absolute basics is a big job, because
you have to define keys and record structures and implement a query system,
all of which is rather hard to do.
 
K

kal

I want to know if it possible to write relational datebase
The famous databases systems are probably written in C.

You can implement a simple database using the stdio functions, in particular
fseek() in conjunction with an index for fast access.

Having said that, to get more than the absolute basics is a big job, because
you have to define keys and record structures and implement a query system,
all of which is rather hard to do.

What he probably wants to know is how to access a relational database
from within a C program.

This is a platform specific question and so is off topic here.

Generally you use one of the APIs (Application Programming Interfaces)
provided by the database vendor. Most database vendors provide an
API called "DBLibrary for C". Look this up in the documentation.

P.S. If you are a windows hack look up DAO (for Jet/Access) or
ADO (for SQL server). You probably may have to use C++ for these.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,362
Latest member
ChandaWagn

Latest Threads

Top