728x90
반응형
왜 이렇게 헷갈리는지 모르겠다;
create
CREATE TABLE [IF NOT EXISTS] [schema_name].table_name (
column_1 data_type PRIMARY KEY,
column_2 data_type NOT NULL,
column_3 data_type DEFAULT 0,
table_constraints
) [WITHOUT ROWID];
update
UPDATE table
SET column_1 = new_value_1,
column_2 = new_value_2
WHERE
search_condition
ORDER column_or_expression
LIMIT row_count OFFSET offset;
drop
DROP table
select
SELECT DISTINCT column_list
FROM table_list
JOIN table ON join_condition
WHERE row_filter
ORDER BY column
LIMIT count OFFSET offset
GROUP BY column
HAVING group_filter;
insert
INSERT INTO table (column1,column2 ,..)
VALUES( value1, value2 ,...);
delete
DELETE FROM table
WHERE search_condition;
출처
https://www.sqlitetutorial.net/
728x90
반응형
'Database' 카테고리의 다른 글
[SQLite3] 컬럼 추가 / 삭제 (0) | 2021.01.29 |
---|---|
[MongoDB] collection or index disappeared when cursor yielded: CappedPositionLost: CollectionScan died due to position in capped collection being deleted. 에러 (0) | 2020.10.15 |
[Sqlite] Node.js Sqlite run() callback 받는 법 (0) | 2020.09.25 |
SQL DB와 No-SQL DB의 정의, 종류, 특징, 차이 (1) | 2020.09.24 |
Mongo DB 특징 (0) | 2019.02.15 |