Creating Databases and Tables: MySQL for Beginners, Part 1

The first part of a tutorial series on the popular free MySQL database. In this video I show you how to create databases and add some data.

Commands demonstrated in this video (these commands create a database called shop and add one very small table to it called ‘customers’):

create database shop;
show databases;
use shop;
show tables;
create table customers (surname varchar(50), firstname varchar(30));
show tables;
desc customers	;
insert into customers (firstname, surname) values ("Joe", "Smith");
select * from customers;

 

Learn to program Java Swing with my complete video course – desktop programming and applets. Includes 7 free videos. Click here for details.

All pages on this site are copyright © 2013 John W. Purcell

3 Responses to Creating Databases and Tables: MySQL for Beginners, Part 1

  1. Anh Nguyen says:

    I found your tutorial very informative, and easy to follow.
    I’d appreciate a tutorial for Cassandra database.

    Thanks.

    Anh

  2. verma says:

    hi how can i get your more SQl tutorial

    • Squiffy says:

      I’m afraid I only created one. Demand for SQL stuff seems very low compared to Java stuff, so I decided to stick to Java.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Posted in MySQL | Tagged , , , , , , |