Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Database Query

Reply
Thread Tools

Database Query

 
 
krish
Guest
Posts: n/a
 
      09-25-2006
Can anybody tell me how SQL query can be done using C

 
Reply With Quote
 
 
 
 
kondal
Guest
Posts: n/a
 
      09-25-2006

krish wrote:
> Can anybody tell me how SQL query can be done using C


Can you re-frame the question please. This is a group for 'standard C
language'

-kondal

 
Reply With Quote
 
 
 
 
Keith Thompson
Guest
Posts: n/a
 
      09-25-2006
"krish" <> writes:
> Can anybody tell me how SQL query can be done using C


Yes, but not here. You'll need to ask in a newsgroup that deals with
databases. There's a comp.database.* hierarchy; quite possibly some
group there has an FAQ that answers your question.

--
Keith Thompson (The_Other_Keith) kst- <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
 
Reply With Quote
 
dcorbit@connx.com
Guest
Posts: n/a
 
      09-27-2006

krish wrote:
> Can anybody tell me how SQL query can be done using C


Usually, it is done by one of the following methods:

1. A database specific API call
2. A standards based API call (such as ODBC, OLEDB, etc.)
3. Embedded SQL.

How to accomplish #1 will depend on your database. Often, you will
have more than one choice, even here. For instance, with PostgreSQL,
you might use LIBPQ:
http://www.postgresql.org/files/docu...l/node147.html

How to accomplish #2 will depend on what methods and drivers you
choose.
With PostgreSQL, you might use:
http://pgfoundry.org/projects/psqlodbc/
for ODBC (among many ODBC driver possibilities)
or you might use:
http://pgfoundry.org/projects/oledb/
among many OLEDB possibilities,
etc.

How to accomplish #3 will depend on what sort of support your database
vendor offers.
For instance, ECPG is the PostgreSQL embedded SQL processor.

Note that none of this has anything to do with the C language, per se.
Probably, a group that targets your exact database system is more
appropriate. If you want to generically attach to arbitrary database
systems, then you definitely want to use a standards based approach
like ODBC or OLEDB.

 
Reply With Quote
 
Mabden
Guest
Posts: n/a
 
      10-02-2006
"krish" <> wrote in message
news: ups.com...
> Can anybody tell me how SQL query can be done using C


Use VB.

--
Mabden


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Database Database Database scott93727@gmail.com Computer Information 0 09-27-2012 02:43 AM
DataBase DataBase DataBase DataBase scott93727@gmail.com Computer Information 0 09-26-2012 09:40 AM
Trying to query the Address table data of AdventureWorks database from Query Analyzer - need help! Learner ASP .Net 1 01-30-2006 08:58 PM
Build dynamic sql query for JSTL <sql:query> Anonymous Java 0 10-13-2005 10:01 PM
HOWTO: display database without refresh web page to query database =?Utf-8?B?U1M=?= ASP .Net 3 05-15-2005 08:22 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57