Question: TASKS to Complete: Create a database named mySQL _ firstname _ your lastname. For example, if your name is John Smith, the database name must
TASKS to Complete:
Create a database named mySQLfirstnameyour lastname. For example, if your name is John Smith, the database name must be mySQLJOHNSMITH. Use this database to complete all of the following tasks. See below.
CREATE DATABASE mySQLyour firstnameyour lastname;
Type the following statements and display the results.
USE mySQL your firstnameyour lastname;
SELECT currentuser now database;
Type the following command to create a table with your name.
CREATE TABLE ex your firstnameyour lastname
ID integer primary key,
FNAME varchar
LNAME varchar;
Type the following command to display the structure of the table.
DESCRIBE ex your firstnameyour lastname;
Type the following command to insert a record with your first and last name into the table ex your firstnameyour lastname.
INSERT INTO ex your firstnameyour lastname
VALUES your firstnameyour lastname;
Type the following command to display the records from the table ex your firstnameyour lastname.
SELECT FROM ex your firstnameyour lastname;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
