티스토리 뷰
Single-table syntax:
UPDATE [LOW_PRIORITY] [IGNORE] table_reference
SET col_name1={expr1|DEFAULT} [, col_name2={expr2|DEFAULT}] ...
[WHERE where_condition]
[ORDER BY ...]
[LIMIT row_count]
Multiple-table syntax:
UPDATE [LOW_PRIORITY] [IGNORE] table_references
SET col_name1={expr1|DEFAULT} [, col_name2={expr2|DEFAULT}] ...
[WHERE where_condition]
> update topic set description='Oracle is ....',author='Kio' where id=2;
Query OK, 1 row affected (0.0143 sec)
> select * from topic;
+----+------------+-------------------+---------------------+----------+----------+
| id | title | description | created | author | profile |
+----+------------+-------------------+---------------------+----------+----------+
| 1 | MySQL | MySQL is... | 2018-01-01 12:10:11 | egoing | NULL |
| 2 | Oracle | Oracle is .... | 2018-01-03 13:01:10 | Kio | NULL |
| 3 | SQL Server | SQL Server is ... | 2018-01-20 11:01:10 | kiostory | NULL |
| 4 | PostgreSQL | PostgreSQL is ... | 2018-01-23 01:03:03 | freebee | NULL |
| 5 | MongoDB | MongoDB is ... | 2018-01-30 12:31:03 | cookieg | NULL |
| 6 | CUBRID | CUBRID is ... | 2019-02-25 14:14:34 | kio | I am me. |
+----+------------+-------------------+---------------------+----------+----------+
'IA > DB' 카테고리의 다른 글
[mysql] table column 명 변경 (0) | 2019.02.26 |
---|---|
[mysql] delete (0) | 2019.02.26 |
[mysql] timezone 변경 on RDS, AWS (0) | 2019.02.25 |
[mysql] insert (0) | 2019.02.25 |
[mysql] update (0) | 2019.02.25 |
- Total
- Today
- Yesterday
- fromkeys
- 대소문자
- 차집합
- exadata
- Join
- storage
- powercli
- dp-1
- cloud-init
- 3par
- dp-2
- oracle
- 변수화
- EXA
- LIST
- 중복제거
- set()
- 배열
- vmware
- insert
- Append
- 제곱
- powershell
- 부동없이
- 스토리지
- 정렬
- sysprep
- 읽어오기
- vmware.powercli
- virt-sysprep
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |