Posted via CodeCall Mobile ok this may sound stupid but I dont really 'get' databases. I know that they store different kinds of info, but how are they utilized in different programs and just in general? I feel ashamed for asking this.
Database Question
Started by Andrew.G, Aug 26 2009 03:17 PM
7 replies to this topic
#1
Posted 26 August 2009 - 03:17 PM
|
|
|
#2
Posted 26 August 2009 - 03:33 PM
No question is a bad question!
Lets say this website, it has TONS of data, right? How do you keep and maintain that? It is possible to just keep generating pages, but lets say you have a 5 page thread, and you delete a post? Should you move all the other pages posts? How would you even identify a post?
Users? if it was a page, how would you sort by post count or reputation?
What other ways can you store and access things so efficiently?
For small applications you may not need one, but a site that needs to keep using data, it is almost required. I made one decent sized application (10mb) that ran on files that it generated and included. I now see how much better it would have been in a database, no reused code etc.
Lets say this website, it has TONS of data, right? How do you keep and maintain that? It is possible to just keep generating pages, but lets say you have a 5 page thread, and you delete a post? Should you move all the other pages posts? How would you even identify a post?
Users? if it was a page, how would you sort by post count or reputation?
What other ways can you store and access things so efficiently?
For small applications you may not need one, but a site that needs to keep using data, it is almost required. I made one decent sized application (10mb) that ran on files that it generated and included. I now see how much better it would have been in a database, no reused code etc.
#3
Posted 26 August 2009 - 03:40 PM
Posted via CodeCall Mobile ok but how are databases implemented in programs, do they require their own IDE and you just import them into your program or what?
#4
Posted 26 August 2009 - 03:45 PM
It depends on what programming language your using.. if it is a desktop application, if its local you can install it, but if its not local you may need to host it somewhere and give it permissions.
#5
Posted 26 August 2009 - 04:21 PM
Posted via CodeCall Mobile still confused on how it all fits together.
#6
Posted 26 August 2009 - 11:47 PM
Is there any way to be more specific with your questions? I know there are guys here that can answer it. It may be a little too broad of a question though.
My Name is Sean and I like codes and stuff...
NoobJunction.com | SuccessOnMyMind.com | ArmedForcesCarClub.com
NoobJunction.com | SuccessOnMyMind.com | ArmedForcesCarClub.com
#7
Posted 27 August 2009 - 07:59 AM
Generally what happens (roughly) is the following:
You have a database with tables. Each table has columns (fields) and rows (records). You can look at Access or OpenOffice Base for simple examples.
Most applications use SQL to get information out of the database or put data into the database. (my next tutorial will have some examples of this in action.) When getting data out of a database, you can specify types of records you want, and which fields you want. You can even get data from several tables at once.
The results that the database returns to the application are then processed or otherwise worked with. This can include displaying the results in a grid, analyzing the results to insert them into another database, etc.
If you want a really good idea of what databases are about, check out this: SQL Tutorial
You have a database with tables. Each table has columns (fields) and rows (records). You can look at Access or OpenOffice Base for simple examples.
Most applications use SQL to get information out of the database or put data into the database. (my next tutorial will have some examples of this in action.) When getting data out of a database, you can specify types of records you want, and which fields you want. You can even get data from several tables at once.
The results that the database returns to the application are then processed or otherwise worked with. This can include displaying the results in a grid, analyzing the results to insert them into another database, etc.
If you want a really good idea of what databases are about, check out this: SQL Tutorial
#8
Posted 27 August 2009 - 01:16 PM
Posted via CodeCall Mobile wow thanks Winged, that makes alot more sense to me.


Sign In
Create Account


Back to top










