|
 |
|
 |
06-16-2006, 04:07 PM
|
#1 (permalink)
|
|
Code Monkey
Join Date: Mar 2005
Posts: 55
|
SQL Pre-pre-Basics
Well, I'm trying to learn SQL All the tutorials I find on the web start out assuming everything is already set up, and have me learning SQL commands.
Well, I need to back way up many steps first! I can't just start entering commands into a DOS box...
So, if you know of a 'how to get started in SQL' that does NOT leave out the all important steps of what SQL is (query language? Implies a new language and I need a new compiler? Or is it really an API and I just need a library for pythin or C++? etc. etc.) or how to fet it started from scratch (I assume I need to be running a server, are these standard things already to go, or do we write our own servers for our particular needs...)
Thanks,
Quantum
|
|
|
06-16-2006, 11:13 PM
|
#2 (permalink)
|
|
Newbie
Join Date: Jun 2002
Location: Denmark
Posts: 1,695
|
Check out the MySQL documentation specificaly the Installing on windows section might be usefull, after that, the Connecting to and disconnecting will shed some light into how to get started.
SQL is a database, like access or Oracle or any of that sort, the communication language with it is called SQL-queries, once you've set up the actual database, you can start issuing all the queries you've been trying to figure out, and see how the database respond..
Mostly you'll probably get a ERROR 1064 (42000): You have an error in your SQL syntax; but that just tells you, the way you've formed the query isn't following what's expected.
Oh, and don't forget to end each query with a ;
|
|
|
06-19-2006, 01:21 PM
|
#3 (permalink)
|
|
Centurion Nova Prime
Join Date: May 2002
Location: Oak Park, IL (USA)
Posts: 285
|
A slight bit of clarification: SQL stands for Structured Query Language. It is the language used to query, update, delete, and insert data in a database. SELECT ID, FIRSTNAME, LASTNAME FROM PERSON is an example of an SQL statement.
All of the popular databases today are considered relational databases. This just means that the data is stored in row-based tables (like PERSON in the example above) and that the data in different tables can be related through common columns and rules to govern how the data is related. For example, a "PERSON (table) has one or more ADDRESS (table)" describes a relationship between the PERSON data and the ADDRESS data. There are other database types, object oriented databases being one example, but because relational databases are so popular, when you see the word "database" written, the author is almost always referring to a relational database.
I have seen some people refer to Microsoft's SQL Server as simply "SQL", but that is an unfortunate and confusing reference.
I agree with Redhead that the simplest way to get started is to use MySQL on Windows.
__________________
It takes 2 points to draw a straight line, but at least 3 points to draw a conclusion.
|
|
|
06-20-2006, 07:20 PM
|
#4 (permalink)
|
|
Code Monkey
Join Date: Mar 2005
Posts: 55
|
Thanks redhead, had it dowloaded, up and running in 15 minutes!
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
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 -8. The time now is 07:36 PM.
|
Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
|
 |
|