SQL


Getting Started in MySQL

You first have to have a database created for you on hercules:

  1. Go to the following web page: https://www.cs.uregina.ca/
  2. Click on the MySQL link
  3. Log-on using your Computer Science UserID and password
  4. Read the Licence Agreement and accept it
  5. Choose a password for your database (something different from your CS password)

.....Wait 15 minutes before trying to access your database

Running MySQL at the Command Prompt

On Hercules

Note: must log in hercules, if not change to hercules with following command

On Windows

For more on MySQL, go to dev.mysql.com .

Creating and Dropping Tables

Inserting and Removing Records from a Table

Displaying the Contents of a Table (through Queries)

The following is by no means complete. It is meant to get you started with SQL queries.