Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-04-2005, 02:54 AM
|
#1
|
|
LQ Newbie
Registered: Oct 2004
Posts: 22
Rep:
|
Which SQL is suitable for EMbedded SQL on C?
Hi all! I'm doing a project on remoting the AV devices using mobile phone and PDA. The main program is written on C. As the target is that I can select one of the devices to be remoted, I will use SQL embedded on C. I wish to ask that which one of SQL is the best--MySQL, PostgreSQL or Oracle? And is the Toolkit for Oracle in Red Hat 9.0 useful? Should I use the kit or install the other SQL? And is there any guide to embed SQL in C? Thank you very much.
Michael
|
|
|
|
01-04-2005, 02:10 PM
|
#2
|
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,471
Rep: 
|
It depends how much you want to spend on licenses and which subset of SQL you need. How much does Oracle cost you probably know. PostgreSQL uses BSD license, so the cost is 0, even for commercial programs. MySQL requires a separate license if your ptogram will not be GPLed.
I can say from my personal experience and for similier (and GPLed) tasks MySQL or correct. If I need triggers and such things I go for PostgreSQL.
All databases have libraries in C to pass SQL queries to database. Functions are different, but thy work more or less the same.
|
|
|
|
01-04-2005, 02:27 PM
|
#3
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,711
|
depends how embedded you're talking.. maybe sqllite might be useful? http://www.sqlite.org/
|
|
|
|
01-05-2005, 08:33 PM
|
#4
|
|
LQ Newbie
Registered: Oct 2004
Posts: 22
Original Poster
Rep:
|
Actually, my case is that I have to access the database that is for the AV Devices, with tpye, brand name and model code, and it will not be changed i.e. static. So, there is no need for the user to insert, update or delete the items in database. But what I have to is to get the plenty of items that I need to store in my main program and then to show it. So, is MySQL enough? Or is it better if I use PostgreSQL? Thank you very much again.
Michael
|
|
|
|
01-10-2005, 05:07 PM
|
#5
|
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,471
Rep: 
|
So the most imprtant thing is how many features you want and how fast must the database be (how many questies per minute).
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:36 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|