LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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


Reply
  Search this Thread
Old 05-05-2005, 02:47 PM   #1
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
programming and databases


I'm new to programming but its a field that I'd really like to get into. The only experience I have is with php. Most of my php scripts were written to collect data, store the data in a mysql database table, then access the data and generate reports. Makes sense right?

Well I'd like to begin writing a financial package and I'm not sure what programming language I should use to do it. If you're wondering why a financial package, well I just thought it would be a fun project where I could actually use the end product. I'd like the program to work on windows and linux so im assuming i should use Java. I have a lot of java programming books that i plan on using to learn the language.

Now to my question, php stores the data it receives in mysql database tables, where do programming languages like java, c, c++ store their data? It there some kind of database utility built in to these languages? How do programming languages store the information that users enter, and then access the data later? Thanks.
 
Old 05-05-2005, 03:10 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Re: programming and databases

Quote:
Originally posted by msound
Now to my question, php stores the data it receives in mysql database tables,
That statement, as it is, is plain wrong. PHP can use other databases
like PostrgeSQL, too ... it's all a matter of APIs and libraries.

Quote:
where do programming languages like java, c, c++ store their data? It there some kind of database utility built in to these languages? How do programming languages store the information that users enter, and then access the data later? Thanks.
See above.
MySQL and Postgres come with APIs for many languages,
including C, C++, Perl, Java ... from other parties you can
get interfaces for other lingos, too



Cheers,
Tink
 
Old 05-05-2005, 03:15 PM   #3
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Original Poster
Rep: Reputation: 30
Quote:
That statement, as it is, is plain wrong. PHP can use other databases
hmmm, seeing as how i was talking about my personal experience with php, and how i use it, that statement is not wrong. I wasnt saying that mysql is the only database solution for php, its just the solution that I use when I write php applications.

Quote:
MySQL and Postgres come with APIs for many languages
Im new to programming, what's an API? where do i get an API? would I need to have the API installed on the machines that I would like to use my Java program on? Or do I only need the API present when I'm writing the program, and once I compile the database source will be included automatically?
 
Old 05-05-2005, 03:17 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
An application programming interface (API) is a set of definitions of the ways in which one piece of computer software communicates with another. It is a method of achieving abstraction, usually (but not necessarily) between lower-level and higher-level software.
http://en.wikipedia.org/wiki/API



Last edited by win32sux; 05-05-2005 at 03:19 PM.
 
Old 05-05-2005, 03:22 PM   #5
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Original Poster
Rep: Reputation: 30
I read through the article and found this

http://en.wikipedia.org/wiki/Java_Database_Connectivity

I think that answers most of my questions. Thanks for the link it was very helpful.
 
Old 05-05-2005, 03:32 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally posted by msound
hmmm, seeing as how i was talking about my personal experience with php, and how i use it, that statement is not wrong. I wasnt saying that mysql is the only database solution for php, its just the solution that I use when I write php applications.
I'm quite happy to argue that ... ;)

You didn't say "From PHP I use a MySQL database for
persistent storage, how would I go about persistent data
from other languages" but "php stores the data it receives
in mysql database tables" which is something matter-of-
factly ;) and still wrong. I use PHP and "store data it
receives" in plain text files without touching MySQL
or other databases.


Cheers,
Tink
 
Old 05-05-2005, 04:52 PM   #7
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Original Poster
Rep: Reputation: 30
dude read the first paragraph of my post. its obvious i was talking about my personal experience with the language. its clear that im not an advanced programmer so its not like anyones going to read my post and take anything away from it. you decided to critique my post instead of offering any kind useful information that i could actually understand given my lack of programming knowledge. thanks to the person who actually posted useful information, that link helped a lot.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
databases varun_33 Linux - Software 2 02-03-2005 12:49 AM
Linux Databases McNeesePimp Linux - Software 3 12-21-2004 11:57 PM
Sql databases CurlyMo Linux - General 5 02-12-2003 04:31 AM
mysql databases k3v0 Linux - Software 2 12-03-2002 07:41 PM
Databases frankyboy4 LQ Suggestions & Feedback 1 08-09-2002 01:27 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration