MySQL by Examples

Jun 29th, 2015
Studypool Tutor
Rogers State University
Course: general
Price: $30 USD

Tutor description

The databases "mysql", "information_schema" and "performance_schema" are system databases used internally by MySQL. A "test" database is provided during installation for your testing.

Word Count: 14610
Showing Page: 1/60
MySQL by Examples for BeginnersRead "How to Install MySQL and Get Started" on how to install, customize, and get started with MySQL.1.Summary of MySQL Commands Used in this TutorialFor detailed syntax, check MySQL manual "SQL Statement Syntax" @http://dev.mysql.com/doc/refman/5.5/en/sql-syntax.html.-- Database-LevelDROP DATABASE databaseName -- Delete the database (irrecoverable!)DROP DATABASE IF EXISTS databaseName -- Delete if it existsCREATE DATABASE databaseName -- Create a new databaseCREATE DATABASE IF NOT EXISTS databaseName -- Create only if it does not existsSHOW DATABASES -- Show all the databases in this serverUSE databaseName -- Set the default (current) databaseSELECT DATABASE() -- Show the default databaseSHOW CREATE DATABASE databaseName -- Show the CREATE DATABASE statement -- Table-LevelDROP TABLE [IF EXISTS] tableName, ...CREATE TABLE [IF NOT EXISTS] tableName ( columnName columnType columnAttribute, ... PRIMARY KEY(columnName), FOREIGN KEY (columnNmae) REFERENCES tableName (columnNmae))SHOW TABLES -- Show all the tables in the default databaseDESCRIBE|DESC tableName -- Describe the details for a tableALTER TABLE tableName ... -- Modify a table, e.g., ADD COLUMN and DROP COLUMNALTER TABLE tableName ADD columnDefinitionALTER TABLE tableName DROP columnNameALTER TABLE tableName A

Review from student

Studypool Student
" Awesome! Exactly what I wanted. "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1826 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors