[DB] SQL vs NOSQL
SQL : Structured Query Language (구조적 질의어)
database가 excel 표 형식같은 관계형으로 이루어져 있다면,
데이터간의 연결은 SQL로 진행하는것이 유용.
확장성의 문제로, 데이터의 양이 방대해질수록, 대용량의 서버 PC가 필요,.
(ex : Customer, Agent, Orders 등 여러 데이터베이스를 묶어서 정리할만한 교점이 있을 때.)
CREATE TABLE table_name (
column1 datatype,
column2 datatype,
column3 datatype,
....
);
INSERT INTO table1
VALUES (0 , 00, 000)
-----------------------------------------------------------------------------------------------------
NOSQL : Not Only Structured Query Language
관계형 database보다 유연성이 장점인 방식으로,
서로 관련 없는 내용의 여러 인터넷 사이트 등 다양한 database를 묶어서 사용하기에 유용.
-----------------------------------------------------------------------------------------------------
[결론]
SQL : More mature, Table structure, Requires a schema, Great with relationships, Scales Vertically
NOSQL : Shiny and new, Document structure, More felxible to changes, Not great with complex relationships, Horizontally scalable