Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 06-16-2006, 04:07 PM   #1 (permalink)
QUantumAnenome
Code Monkey
 
Join Date: Mar 2005
Posts: 55
QUantumAnenome is on a distinguished road
Send a message via Yahoo to QUantumAnenome
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
QUantumAnenome is offline   Reply With Quote
Old 06-16-2006, 11:13 PM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,695
redhead is on a distinguished road
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 ;
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 06-19-2006, 01:21 PM   #3 (permalink)
technobard
Centurion Nova Prime
 
technobard's Avatar
 
Join Date: May 2002
Location: Oak Park, IL (USA)
Posts: 285
technobard is on a distinguished road
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.
technobard is offline   Reply With Quote
Old 06-20-2006, 07:20 PM   #4 (permalink)
QUantumAnenome
Code Monkey
 
Join Date: Mar 2005
Posts: 55
QUantumAnenome is on a distinguished road
Send a message via Yahoo to QUantumAnenome
Thanks redhead, had it dowloaded, up and running in 15 minutes!
QUantumAnenome is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reconnecting to SQL database jimmyoctane PHP 2 12-13-2005 05:47 PM
help with SQL and VB.NET doobiwan Everything SQL ( MySQL, MSSQL, DB2, Postgre, Oracle, etc...) 4 06-10-2005 07:09 AM
sql server 2000 validation problems cmartin2 MS Technologies ( ASP, VB, C#, .NET ) 0 12-11-2004 11:55 AM


All times are GMT -8. The time now is 07:36 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting