alternative
  • Home (current)
  • About
  • Tutorial
    Technologies
    C#
    Deep Learning
    Statistics for AIML
    Natural Language Processing
    Machine Learning
    SQL -Structured Query Language
    Python
    Ethical Hacking
    Placement Preparation
    Quantitative Aptitude
    View All Tutorial
  • Quiz
    C#
    SQL -Structured Query Language
    Quantitative Aptitude
    Java
    View All Quiz Course
  • Q & A
    C#
    Quantitative Aptitude
    Java
    View All Q & A course
  • Programs
  • Articles
    Identity And Access Management
    Artificial Intelligence & Machine Learning Project
    How to publish your local website on github pages with a custom domain name?
    How to download and install Xampp on Window Operating System ?
    How To Download And Install MySql Workbench
    How to install Pycharm ?
    How to install Python ?
    How to download and install Visual Studio IDE taking an example of C# (C Sharp)
    View All Post
  • Tools
    Program Compiler
    Sql Compiler
    Replace Multiple Text
    Meta Data From Multiple Url
  • Contact
  • User
    Login
    Register

SQL -Structured Query Language - SQL Insert - Insert Record Tutorial

To insert single or multiple records in an already-created table. Then we can use an ' INSERT ' Statement.

 

Syntax-

 

  1. To insert record in the table without defining column name.
INSERT INTO table_name VALUES 

(‘colname1_value’,’ colname2_value’,…,’ colnameN_value’);

 

For example-

INSERT INTO user_detail VALUES 

(1,'Fresherbell','support@fresherbell.com','2021-02-01');

Run Query

 

In Mysql Workbench-

 

  1. To insert a record in the table by defining the column name.
INSERT INTO table_name(colname1,colname2,…,colnameN) VALUES 

(‘colname1_value’,’ colname2_value’,…,’ colnameN_value’);

 

For example-

INSERT INTO user_detail(id,name,email,dateofbirth) VALUES 

(2,'Fresher bell','support@fresherbell.com','2022-08-02');

Run Query

 

In Mysql Workbench-

 

  1. To insert multiple records at a time in the table.
INSERT INTO table_name(colname1,colname2,…,colnameN) VALUES 

(‘colname1a_value’,’ colname2a_value’,…,’ colnameNa_value’),

(‘colname1b_value’,’ colname2b_value’,…,’ colnameNb_value’),

(‘colname1c_value’,’ colname2c_value’,…,’ colnameNc_value’),

(‘colname1d_value’,’ colname2d_value’,…,’ colnameNd_value’);

 

For example-

INSERT INTO user_detail(id,name,email,DOB) VALUES 

(1,"Fresherbell1","support1@fresherbell.com",2020-18-01),

(2,"Fresherbell2","support2@fresherbell.com",2020-19-01),

(3,"Fresherbell3","support3@fresherbell.com",2020-17-01),

(4,"Fresherbell4","support4@fresherbell.com",2020-16-01);

Run Query

 

In Mysql Workbench-

SQL -Structured Query Language

SQL -Structured Query Language

  • Introduction
  • Overview
    • How To Download And Install MySql Workbench
    • SQL Syntax
  • SQL Database
    • Create Database
    • Drop Database
    • Use / Select Database
  • SQL Table
    • Create Table
    • Alter - Rename Table
    • Alter - Add Column
    • Alter - Modify Column
    • Alter - Rename Column
    • Alter - Drop Column
    • Copy Table
    • Drop Table
  • SQL Insert
    • Insert Record
  • Sql Update
    • Update Record
  • Sql Select
    • Select Record
    • Select - Count
    • Select - Average
    • Select - Sum
    • Select - Min Max
    • Select - Distinct
    • Select - Limit
    • Select - First
    • Select - Last
  • Sql Clause
    • Like Clause
    • And Operator
    • Or Operator
    • Between & Not Between Operator
    • As or Alias
    • In Clause
    • Group By Clause
    • Having Clause
  • Sql Order By
    • Ascending
    • Descending
    • Random
    • Ascending Descending Multiple Column
  • SQL Joins
    • Joins and its type
    • Inner Join
    • Left Join
    • Right Join
    • Full Join
    • Cross Join
  • SQL View
    • Create View
    • Update View
    • Delete View
  • SQL Delete
    • Delete Table
    • Truncate Table
  • Sql Key & Constraint
    • Primary Key
    • Foreign Key
    • Unique Key
    • Not Null Constraint
    • Check Constraint
    • Default Constraint
  • Normalization
    • Overview
    • 1 NF
    • 2 NF
    • 3 NF
    • Boyce Codd normal form ( BCNF )

About Fresherbell

Best learning portal that provides you great learning experience of various technologies with modern compilation tools and technique

Important Links

Don't hesitate to give us a call or send us a contact form message

Terms & Conditions
Privacy Policy
Contact Us

Social Media

© Untitled. All rights reserved. Demo Images: Unsplash. Design: HTML5 UP.