in essence, i want to know how professionally-made databases work and how to make my own.
my experience includes a course in VB and a little bit of experimentation in java with guidance from a java book. i'm already familiar with the very basic concepts of syntax, data types, loops, arrays and such. i know about advanced algorithms, data structures, and OOP, but not adept at them.
one of the guys in my programming class said custom databases are very valued by companies and learning how to make them is a good step.
just to get started...what language do most professional programmers prefer(if this is too broad, what would be the best language for making databases?)?
None.
SQL, usually mySQL.
Syntax is hella easy, SELECT * [or choose a column name like Name or ID, * meaning everything] FROM [table] WHERE [item] = [value] AND [item2] > [value]
I can't remember how to add stuff to the tables, as I learned it 2 years ago, very basic shit, and I haven't used it since.
None.
SQL is a specialized language and mySQL is an implementation of it? is that the proper distinction?
None.
I believe mySQL acts as a compiler for it? Or at least it is used to write the code in.
None.
I think it's that SQL and mySQL are very similar languages, with only slight nuances that separate them, so if you know one, in essence, you know the other.
None.
so...do programmers do 'tricks' to optimize it or do they just use the base libraries and just customize the layouts and such for the customer?
None.
I honestly don't know how to anwser your questions.
Your choice in database depends on what code you are using, generally. If you are doing vB, you will probably use ms access / mssql... if you are doing php, mysql is your best choice, if you are writting a program for banks, oracle, asp you might use mssql.
SQL is... erm... the language for statements to the database. It just generally the guidelines for syntax use, I believe.
As far as "customized database for customers"... i dunno wtf... If you are writing a program, your database will just be as customized and unique as the program itself, because it all depends on your needs. You aren't going to use SEN's forum database for an online game like runescape.
None.
sorry, i'm just inexperienced, so i don't know how most people do things and what 'things'(actual programs, protocols, etc.) exist. i'll try to start asking questions from the bottom.
so, i decided to start working on my database project and open up my [insert language here] IDE...where do i go from here?
Q:
when you say 'database' are you referring to a pre-made program, or just a set of standard protocols?
Post has been edited 1 time(s), last time on Sep 21 2007, 11:46 pm by Sauceover.
None.
Database as in you 'create' the database in enter information, or have scripts, like this forum does, to enter information.
Take the forums for example. IP may create a table called Forums, and make a script with php or whatever he uses, to add entries to that table based on the data input by users, say TitleOfTopic, PostCount and as I'm entering now, Post.
None.
well, i was wondering more about the actual mechanism that holds the actual data. like, where is the actual variable. is it encapsulated within a program that has its own get/set functions and sorting algorithms or is it stored in a array/data structure where, by following standardized protocols, it can be easily searched and found.
Post has been edited 1 time(s), last time on Sep 22 2007, 3:13 am by Sauceover.
None.
A database is managed by a program such as MySql, Microsoft SQL Server, Microft Access (a big no-no if you plan on making something really big), Oracle, etc. These programs can interpret a query language called SQL and exchange data with you. Most of the programs extend SQL with some proprietary commands.
A database is basically a file containing a whole bunch of data structures that database programs parse, interpret, and use queries on.
Most programming languages give you a wrapper to make database work easier and more secure (the mysql extension in php, ADO.Net in the .Net framework, ADO in VB6 and ASP, etc.).
Most database programs will allow you to store queries directly in the database and have a function-like calling mechanism for them in SQL. Using stored procedures is usually faster than creating a query dinamically and sending it to the database program to compile and execute, because stored procedures are precompiled.
Hope that helps.
None.
thanks alot, that was exactly what i was looking for(and then some...)
None.
Go learn a real language.
None.
...and if you need to make a database...
None.