Question: When you are using CLC for practice activity # 2 , follow these steps: You need to create a database: let's say its name is
When you are using CLC for practice activity # follow these steps:
You need to create a database: let's say its name is INFO:
mysql CREATE DATABASE INFO;
Query OK row affected sec
Use this database by running:
mysql CREATE DATABASE INFO;
Query OK row affected sec
Next step is to create table:
CREATE TABLE employees
id INT AUTOINCREMENT PRIMARY KEY,
name VARCHAR
age INT,
position VARCHAR
;
Insert data into table:
mysql INSERT INTO employeesname age, position VALUES
John Doe', 'Manager'
Jane Smith', 'Developer'
Michael Johnson', 'Designer'
Emily Davis', 'Marketing';
Query OK rows affected sec
Records: Duplicates: Warnings:
Run query:
mysql SELECT FROM employees;
id name age position
John Doe Manager
Jane Smith Developer
Michael Johnson Designer
Emily Davis Marketing
rows in set sec
We will start DDL programming in the next lecture, covering all the steps. This activity only provides you with an exercise on how to start working with CLC
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
