어제보다 더 나은 오늘 (BETTER)

October 21, 2020


더 나은 기술


DATABASE

NoSQL vs Relational Databases

What are the major differences between NoSQL and SQL?

Structured Query Language

  • 데이터 정의 언어(DDL) & 데이터 조작 언어(DML)
  • 터미널에서 데이터를 쿼리하는 것은 GUI에 비해 비효율적이다. 특히 JOIN이 그렇다.
  • ORM

Relational Databases

  • 관계형 데이터베이스 관리 시스템(RDBMS)
  • MYSQL
  • schema.sql를 작성하여 데이터베이스를 디자인(mapping cardinality)하고 MySQL 서버에 Batch한다. Node.jsmysql 모듈로 데이터베이스를 연결하고 쿼리한다.
  • dotenv is a zero-dependency module that loads environment variables from a .env file into process.env.
  • SQL Tutorial / Node.js MySQL

NoSQL

Issue & Keyword

  • ERROR 1064 (42000) at line n: You have an error in your SQL syntax

    문법

  • ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

    비밀번호

  • ERROR 1075 (42000) at line n: Incorrect table definition; there can be only one auto column and it must be defined as a key

    PRIMARY KEY + AUTO INCREMENT


Profile picture

Written by Soomin 호기심이라는 우주선을 타고 떠나는 여행. 이 곳은 모험을 기록하는 우주정거장. Soomin Space Station