+ Reply to Thread
Results 1 to 9 of 9

Thread: Difference between SQL and MySQL

  1. #1
    Zenax's Avatar
    Zenax is offline Lord Of The Keys Zenax is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    The Brilliant United Kingdom
    Posts
    1,339

    Difference between SQL and MySQL

    Okay, if you come accross the thread then u already know, but if not then heres what I am doing.

    I am creating a program that can access different types of DB and then edit, change records etc in Visual Basic 6.0

    What I want to know is the difference between SQL and MySQL so then I can go about this the right way!

    Also if you know how to, then post how to connect to them using Visual Basic 6.0!


    Regards,
    Zenax
    Regards,
    Zenax

  2. #2
    Chris Z's Avatar
    Chris Z is offline x10 Spammer Chris Z is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Alabama, USA
    Posts
    2,802

    Re: Difference between SQL and MySQL

    -Chris Z
    Retired Account Manager


  3. #3
    Brandon's Avatar
    Brandon is offline Former Senior Account Rep Brandon is on a distinguished road
    Join Date
    Jun 2006
    Location
    Tewksbury, MA
    Posts
    9,589

    Re: Difference between SQL and MySQL

    The difference between SQL and MySQL is that MySQL is free, whereas SQL is not, and MySQL is faster, more reliable.
    Last edited by Brandon; 03-18-2007 at 10:00 AM.
    Thanks,
    Brandon Long

  4. #4
    Bryon is offline Administrator Bryon has disabled reputation
    Join Date
    Apr 2005
    Location
    Northfield, NH
    Posts
    7,608

    Re: Difference between SQL and MySQL

    SQL is a language, (Structured Query Language), which provides a way to access (create, delete, modify, etc) data in a relational database system, such as MySQL or Microsoft SQL Server.

    MySQL is an open source relational database server, which uses SQL.

  5. #5
    Micro is offline Retired staff (11-12-2008) Micro is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    West Midlands
    Posts
    1,301

    Re: Difference between SQL and MySQL

    SQL is just a type of query. MySQL is a free database server, Microsoft SQL Server is not (The express edition is however).
    Micro

  6. #6
    Zenax's Avatar
    Zenax is offline Lord Of The Keys Zenax is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    The Brilliant United Kingdom
    Posts
    1,339

    Re: Difference between SQL and MySQL

    so i basically just use MS Acces DB and also MySQL Db in the program, all SQL is, is the coding language for MySQL? is that a correct understanding of it?
    Regards,
    Zenax

  7. #7
    Bryon is offline Administrator Bryon has disabled reputation
    Join Date
    Apr 2005
    Location
    Northfield, NH
    Posts
    7,608

    Re: Difference between SQL and MySQL

    Quote Originally Posted by Zenax View Post
    so i basically just use MS Acces DB and also MySQL Db in the program, all SQL is, is the coding language for MySQL? is that a correct understanding of it?
    Pretty much. There are a bunch of 'SQL database servers' which use SQL to access, maintain, modify, etc the data in them. SQL is like.. An interface to 'access the servers' data, while the actual server (Eg: MySQL) is what's running on the actual server.

  8. #8
    clareto is offline x10 Sophmore clareto is an unknown quantity at this point
    Join Date
    Oct 2005
    Posts
    125

    Re: Difference between SQL and MySQL

    Well, its my turn to explain...

    SQL is a standard to query databases and perform administration tasks. SQL is not any software. SQL is not any database engine. SQL is just a standard. By carrying the example to real world things, think of SQL as the "ideal English language", that one that is in academy books.

    MSSQL, MySQL, posgreSQL, are database engines (i.e. software), and each of them 'speaks' an specific 'slang' of SQL (all of them based in the SQL standard). Each one exists because there are different kinds of people in the world. Each implementation of the SQL language reflects the thoughts and ideals of each project. Think of each SQL 'slang' like the english spoken in different places. For example, you use English to order a pizza. But you use some words to order a pizza in the Bronx, and similar words to order a pizza in Beverly Hills. It just of 'culture'.

    For example, if you say "NATURAL JOIN" or "LIMIT 1,5" to MySql, it will recognize the words. But if you say the same words to MsSQL, it will say "hey! wtf are you trying to say me, man?". You will get a similar response if you say "CALL" or "CREATE PROCEDURE" to mySql 4.x.



    In general, all you need to do when making database operations is:
    1) connect to the database and get a link to it
    2) perform the actions you need using the link. The used language to explain the actions you need is SQL.
    3) close the link.


    If you use Mysql-php you need to use the libmysql library and use the functions.

    When using mysql-php, you do these 3 steps this way
    1) call mysql_connect and keep the resource it returns
    2) use the functions of the mysql library. Tell them to use the link resource created in step 1. Tell them what do you want to do (like ordering a pizza) using SQL (MySQL).
    3) call mysql_close


    If you use access-VB, you need to use the ADO (or ADO.NET) library and use the functions.

    When using access/mssql - VB.net/C# you do these 3 steps this way
    1) create a SqlConnection object and call the open method in it
    2) create SqlCommand objects. Tell them to use the SqlConnection created in step 1. Tell them what do you want to do (like ordering a pizza) using SQL (MSSQL)
    3) close the connection with close()

    This 1-2-3 general procedure also applies for languages like java (connecting through ODBC), but you can find the specific implementation details in the books, in the technology specifications, in the academy, or in tutorials (google for them!)


    Hope it helps!
    Last edited by clareto; 03-18-2007 at 07:27 PM.

  9. #9
    Zenax's Avatar
    Zenax is offline Lord Of The Keys Zenax is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    The Brilliant United Kingdom
    Posts
    1,339

    Re: Difference between SQL and MySQL

    Thanks Clareto. This really clears up what I needed to know. Also thanks to the other participents in this thread. Again your information was useful to me as well!


    Many Thanks,
    Zenax
    Regards,
    Zenax

+ Reply to Thread

Similar Threads

  1. [PHP] MySQL and PHP
    By Bryon in forum Tutorials
    Replies: 43
    Last Post: 03-24-2011, 07:27 AM
  2. Replies: 5
    Last Post: 01-07-2007, 07:18 AM
  3. sql databases
    By Jake Bullet in forum Free Hosting
    Replies: 3
    Last Post: 10-01-2005, 11:41 AM
  4. SQL Error On My IPB
    By HOST1 in forum Free Hosting
    Replies: 9
    Last Post: 09-01-2005, 01:07 PM
  5. MySQL Help
    By AsPeRiTy in forum Free Hosting
    Replies: 2
    Last Post: 08-07-2005, 12:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers