How To Create Data Insert. Update. Delete Using SQL Script

How To Create Data Insert. Update. Delete Using SQL Script

How To Create Data Insert. Update. Delete Using SQL Script

 

SQL Is A Database Computer Language Designed To Recover And Manage Data In Relational Databases. SQL Stands For Structured Query Language. This Tutorial Will Give You A Quick Overview On SQL. It Covers Most Of The Things Needed For A Basic Understanding Of SQL And How It Works. How To Create Data Insert. Update. Delete Using SQL Script

Why Learn SQL?

SQL Is A Structured Query Language, A Computer Language For Storing, Manipulating, And Retrieving Data Stored In A Relational Database. SQL Is The Standard Language For Relational Database Systems. All Relational Database Management Systems (RDMS) Such As MySQL, Ms Access, Oracle, SYBASE, Inform ix, Postgres And SQL Server Use SQL As Their Standard Database Language. Also, They Are Using Different Dialects, Such As -      Ms SQL Server Uses T-SQL,     Using Oracle Pl / SQL,     The Ms Access Version Of SQL Is Called JT SQL (Native Format) Etc.

We will first create a test table to see the Insert, Update, Delete Explain. 

SQL Is A Database Computer Language Designed To Recover And Manage Data In Relational Databases. SQL Stands For Structured Query Language. This Tutorial Will Give You A Quick Overview On SQL. It Covers Most Of The Things Needed For A Basic Understanding Of SQL And How It Works.

CREATE TABLE "TEST_TABLE"
(
    ID NUMBER,
    FULL_NAME  VARCHAR2(4000 BYTE),
    AGE VARCHAR2(4000 BYTE),
    HOME_ADDRESS VARCHAR2(4000 BYTE),
    JOB_JOB_SALARY VARCHAR2(4000 BYTE)
)

SQL - INSERT Query

The SQL Insert Object Statement Is Used To Add New Lines Of Data To The Table On The Website. If You Add Values For All The Columns In The Table, You Do Not Need To Specify The Column (S) FULL_NAME In The SQL Query. But Make Sure That The Order Of The Values Is In The Same Order As The Columns In The Table.

The SQL Insert Into Syntax Will Be As Follows - 
INSERT INTO TABLE_FULL_NAME
     VALUES (value1,
             value2,
             value3,                                                          
             ..  . valueN);
Example The Following Statements Will Create Six Records At The TEST_TABLE Table
INSERT INTO TEST_TABLE (ID,
                        FULL_NAME,
                        AGE,
                        HOME_ADDRESS,
                        JOB_SALARY)
     VALUES (1,
             'Raji',
             32,
             'jomiddar bari',
             2000.00);

INSERT INTO TEST_TABLE (ID,
                        FULL_NAME,
                        AGE,
                        HOME_ADDRESS,
                        JOB_SALARY)
     VALUES (2,
             'Ekbal',
             28,
             'Feni',
             1700.00);

INSERT INTO TEST_TABLE (ID,
                        FULL_NAME,
                        AGE,
                        HOME_ADDRESS,
                        JOB_SALARY)
     VALUES (3,
             'Azad',
             24,
             'Dagonvoiya',
             2000.00);

INSERT INTO TEST_TABLE (ID,
                        FULL_NAME,
                        AGE,
                        HOME_ADDRESS,
                        JOB_SALARY)
     VALUES (4,
             'CHabib',
             25,
             'Monsigong',
             6500.00);

INSERT INTO TEST_TABLE (ID,
                        FULL_NAME,
                        AGE,
                        HOME_ADDRESS,
                        JOB_SALARY)
     VALUES (5,
             'Minhaj',
             27,
             'Narayongong',
             8500.00);

INSERT INTO TEST_TABLE (ID,
                        FULL_NAME,
                        AGE,
                        HOME_ADDRESS,
                        JOB_SALARY)
     VALUES (6,
             'Faruk',
             22,
             'Rajsahi',
             4500.00);

SQL - UPDATE Query

SQL Update Query Is Used To Change The Existing Records In A Table. You Can Use The Where Clause With The Update Query To Update The Selected Row, Otherwise All Rows Will Be Affected. How To Create Data Insert. Update. Delete Using SQL Script

Example 
UPDATE TEST_TABLE
   SET FULL_NAME = 'Habib'
 WHERE ID = 4;

SQL - DELETE Query

A SQL Delete Query Is Used To Delete An Existing Record From A Table.
You Can Use The Where Clause With A Delete Query To Delete The Selected Row, Otherwise All Records Will Be Deleted. How To Create Data Insert. Update. Delete Using SQL Script

Example 
DELETE FROM TEST_TABLE
      WHERE ID = 4;

SQL - DROP or DELETE Table

The SQL Drop Table Statement Is Used To Define A Table And Delete All Data, Indexes, Triggers, Constraints, And Permissions Specification For That Table.
Note—You Must Be Very Careful When Using This Command, Because Once A Table Is Deleted, All The Information On That Table Will Be Lost Forever. How To Create Data Insert. Update. Delete Using SQL Script

Example 
DROP TABLE TEST_TABLE;

SQL - SELECT Query

The SQL Select Statement Is Used To Retrieve Data From A Database Table, Which Provides This Data In The Form Of A Result Table. This Result Table Is Called The Result-set. How To Create Data Insert. Update. Delete Using SQL Script

Example-1 
SELECT * FROM TEST_TABLE;
Example-2 
SELECT ID, FULL_NAME, HOME_ADDRESS FROM TEST_TABLE;

SQL - WHERE Clause

The Where Clause Is Not Only Used In The Select Statement, But Also In The Update, Delete Statement, Etc., Which We Will Examine In The Next Chapter.

Example 
SELECT ID, FULL_NAME, JOB_SALARY
  FROM TEST_TABLE
 WHERE JOB_SALARY > 2000;
 

🔗 Demo Application-
            URL- Demo Application
            Username - demo, Pass- demo
 

I hope everyone will like it. Please watch the full video,
Comment on any of your problems, I will try my best to solve the problem, In-Shah Allah. Everyone's cooperation is desirable. Visit my blog site, new technology related videos, you will get different types of tutorials of Oracle Apex, and hopefully, you can use them in your daily work.
Please stay tuned by subscribing to the YouTube channel, and encourages new videos to be uploaded.
=================
Visit my site to get more collaborative posts about Oracle Apex and subscribe to my YouTube channel. Thanks.
Comment on any of your issues, I will try my best to solve the problem, In-Shah Allah. Everyone's cooperation is desirable.
Visit my blog site, new technology-related videos, you will get different types of tutorials of Oracle Apex, and hopefully, you can use them in your daily work.
==============================

🙍🏾‍ Md jABER HOSSEN
📲 Mobile- +8801760688286
📨 Email- jaberit786@gmail.com
🌐 FB- facebook.com/mdjaber.hossen1
Please Subscribe to My Channel

Many thanks for visiting the site.

Then Enjoy.........................
How To Create Data Insert. Update. Delete Using SQL Script

Post a Comment

Hlo Sir

Previous Post Next Post