DAD 220 Lab 1

docx

School

Southern New Hampshire University *

*We aren’t endorsed by this school

Course

DAD220

Subject

Computer Science

Date

Dec 6, 2023

Type

docx

Pages

3

Uploaded by ChiefPheasant2716

Report
DAD 220 1. Create a new database and update the name to your last name, then connect to it. Type the following commands after the prompt mysql>: A. create database last_name_here; i. For example, if your database is going to be named Jetson, then substitute Jetson for “last_name_here.” ii. Press Enter . B. show databases; i. Press Enter . ii. You should see a listing of all of the databases (or schemas) in MySQL, including the one you just created. C. use last_name_here; i. Press Enter . ii. Substitute the name of your database (for example, Jetson) for “last_name_here”. This SQL statement connects your MySQL session to the database you’ve just created. iii. Capture a screenshot or clipping of the results of this action, and place it in a Word document for submission.
Figure 1: Step 1 2. Create a table called tb2 and list out the tables in your database with one field by typing the following commands after the prompt mysql>: A. create table tb2 (user_id VARCHAR( 50 )); i. Press Enter . B. show tables; i. Press Enter . C. describe tb2; i. Press Enter . ii. Capture a screenshot or clipping of the results of this action, and place it in a Word document for submission.
Figure 2: Step 2 3. Add a second field into the table and describe it. Do this by entering the following commands after mysql>: A. alter table tb2 add newfield VARCHAR(25); i. Press Enter . B. describe tb2; i. Press Enter . ii. Capture a screenshot or clipping of the results of this action, and place it in a Word document for submission. Figure 3: Step 3
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help