SQL - INSERT INTO Statement

The INSERT INTO statement is used to insert new records in a table.

It is possible to write the INSERT INTO statement in two ways.
The first way specifies both the column names and the values to be inserted:
INSERT INTO table_name (column1, column2, column3, ...)
VALUES (value1, value2, value3, ...);

If adding values for all the columns of the table, no need to specify the column names in the SQL query. However, the order of the values are in the same order as the columns in the table. The INSERT INTO syntax would be as follows:

INSERT INTO table_name
VALUES (value1, value2, value3, ...);

Examples:
MariaDB [testdatabase]> insert into employee 
    -> (empno, name, designation, department, basicpay)
    -> values (101, "Sayan", "Manager", "Finance", 50000);
Query OK, 1 row affected (0.24 sec)

MariaDB [testdatabase]> insert into employee 
    -> (empno, name, designation, department, basicpay)
    -> values (102, "Thomas Kutty", "Salesman", "Sales", 10000);
Query OK, 1 row affected (0.11 sec)

MariaDB [testdatabase]> insert into employee
    -> (empno, name, designation, department, basicpay)
    -> values (103, "Jiji Johnson", "Accountant", "Accounts", 30000);
Query OK, 1 row affected (0.12 sec)

MariaDB [testdatabase]> insert into employee
    -> (empno, name, designation, department, basicpay)
    -> values (104, "Selvaraj", "Senior Manager", "IT", 60000);
Query OK, 1 row affected (0.11 sec)

MariaDB [testdatabase]> select * from employee;
+-------+--------------+----------------+------------+----------+------+-------+
| empno | name         | designation    | department | basicpay | da   | total |
+-------+--------------+----------------+------------+----------+------+-------+
|   101 | Sayan        | Manager        | Finance    | 50000.00 | NULL |  NULL |
|   102 | Thomas Kutty | Salesman       | Sales      | 10000.00 | NULL |  NULL |
|   103 | Jiji Johnson | Accountant     | Accounts   | 30000.00 | NULL |  NULL |
|   104 | Selvaraj     | Senior Manager | IT         | 60000.00 | NULL |  NULL |
+-------+--------------+----------------+------------+----------+------+-------+
4 rows in set (0.00 sec)

MariaDB [testdatabase]>