INSERT INTO 테이블명 VALUES (VALUE_LIST);
e.g.
Salary
Id | Name | Salary | Date |
---|
INSERT INTO Salary VALUES ('1','A','250','2020-03-01');
Salary
Id | Name | Salary | Date |
---|---|---|---|
1 | A | 250 | 2020-03-01 |
INSERT INTO 테이블명 (COLUMN_LIST) VALUES (VALUE_LIST);
INSERT INTO Salary (Id, Salary) VALUES ('2','550');
Salary
Id | Name | Salary | Date |
---|---|---|---|
1 | A | 250 | 2020-03-01 |
2 | Null | 550 | Null |
UPDATE 테이블명 SET 컬럼 = 값;
e.g.
Salary
Id | Name | Salary |
---|---|---|
1 | A | 250 |
2 | B | 550 |
UPDATE Salary SET Salary = Salary + 100;
Salary
Id | Name | Salary |
---|---|---|
1 | A | 350 |
2 | B | 650 |
UPDATE 테이블명 SET 컬럼 = 값 WHERE 조건식;
e.g.
Salary
Id | Name | Salary |
---|---|---|
1 | A | 250 |
2 | B | 550 |
UPDATE Salary SET Salary = Salary + 100 WHERE Id = 2;
Salary
Id | Name | Salary |
---|---|---|
1 | A | 250 |
2 | B | 650 |
DELETE FROM 테이블명;
e.g.
Salary
Id | Name | Salary |
---|---|---|
1 | A | 250 |
2 | B | 550 |
DELETE FROM Salary;
Salary
Id | Name | Salary |
---|
DELETE FROM 테이블명 WHERE 조건식;
IN
조건NOT IN
조건 e.g.
Salary
Id | Name | Salary |
---|---|---|
1 | A | 250 |
2 | B | 550 |
DELETE FROM Salary WHERE Id = 2;
Salary
Id | Name | Salary |
---|---|---|
1 | A | 250 |