Abi.m - Day-03
Abi.m - Day-03
Abi.m - Day-03
LEARNING
PRESENTED BY
ABI.M
III-YEAR BE(CSE)
Linkdin
https://www.linkedin.com/in/abi-m-4a1a92282
AGENDA
1. INTRODUCTION
2. INSTALLING MYSQL ON MAC
3. INSTALLING MYSQL ON WINDOWS
4. CREATING A DATABASE
5. INSERTING A ROW
6. UPDATE THE TABLE
INTRODUCTION
STEPS
Step 1
Download MySQL Installer: Go to the MySQL website and download the MySQL Installer
for Windows.
Step 2
Run Installer: Once downloaded, run the installer. You will be prompted to choose an
installation type. Select "Custom" to customize your installation options.
Step 3
Select Products: In the product selection screen, you can choose which MySQL products to
install. Typically, you'll want to install MySQL Server and MySQL Workbench for managing
your databases. You can also select additional tools or connectors if needed.
STEPS
Step 4
Configure MySQL Server: During the installation process, you'll be prompted to
configure MySQL Server. You'll need to set a root password and optionally configure
other settings like port number and service name.
Step 5
Complete Installation: Follow the remaining prompts to complete the installation
process. Once finished, you should have MySQL installed on your Windows system.
INSTALLING MYSQL ON MAC
STEPS
Step 1
Install Homebrew: If you haven't installed Homebrew already, open Terminal and paste
the following command, then press Enter
/bin/bash -c "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Step 2
Install MySQL with Homebrew: Once Homebrew is installed, you can install MySQL by
running the following command in your Terminal
SYNTAX
OUTPUT
SYNTAX
OUTPUT
SYNTAX
SELECT * FROM table_name WHERE column_name operator value;
EXAMPLE
SELECT * FROM Student
WHERE StudentID=05;
OUTPUT
StudentId FirstName LastName Email Phone
05 Nikil M nikil@gmail.com 9845689025
INSERTING SINGLE ROW
Inserting a data in the Database
The INSERT INTO statement in SQL is used to add new records to a table in a
database. It is a fundamental command for data insertion and is used to insert new
data into tables.
Only Values
specify only the value of data to be inserted in the database.
SYNTAX
INSERT INTO table_name (column1, column2, column3, ...)
VALUES (value1, value2, value3, ...);
EXAMPLE
OUTPUT
In a very simple way, we can say that SQL commands(UPDATE and DELETE)
are used to change the data that is already in the database .
SYNTAX
UPDATE table_name
SET column1 = value1, column2 =value2,…
WHERE condition;
EXAMPLE
UPDATE Student
SET Address=50,kovilstreet,avadi
WHERE StudentID = 05;
OUTPUT