Inserting and retrieving data from database able using SQLDML commands.
Code:
Select or Create a Database
create database if not exists test22;
use test22;
show databases;
Create a Table(if not exists)
create table if not exists uses(
id int auto_increment primary key,
name varchar(100),
email varchar(100));
desc uses;
Insert Data into the Table
insert into uses(name,email)
values("Abhay","Abhay12@[Link]"),
("Vedant","Vedant13@[Link]");
Retrieve Data from the Table
select * from uses;
Inserting and retrieving data from database able using SQLDML
commands.
Code:
Select or Create a Database
create database if not exists test22;
use test22;
show databases;
Create a Table(if not exists)
create table if not exists uses(
id int auto_increment primary key,
name varchar(100),
email varchar(100));
desc uses;
Insert Data into the Table
insert into uses(name,email)
values("Abhay","Abhay12@[Link]"),
("Vedant","Vedant13@[Link]");
Retrieve Data from the Table
select * from uses;