목록DataBase (9)
일상 코딩
https://truecode-95.tistory.com/182 [M1 Mac] Hombrew MySQL 설치 (1) Mysql search 1. brew search mysql Mysql 다운 2. brew install mysql 3. (에러 발생했을경우) brew install openssl * Error 발생 이유 : homebrew update 문제 * 참고 : https://jinmay.github.io/2020/05.. truecode-95.tistory.com
https://docs.mongodb.com/v4.4/tutorial/install-mongodb-on-ubuntu/ Install MongoDB Community Edition on Ubuntu — MongoDB Manual Docs Home → MongoDB ManualMongoDB AtlasMongoDB Atlas is a hosted MongoDB service option in the cloud which requires no installation overhead and offers a free tier to get started.Use this tutorial to install MongoDB 4.4 Community Edition on LTS (long-ter docs.mongodb.com
2.1 연결하기¶ In [ ]: import pymongo In [ ]: host_info2 = 'mongodb://ubuntu:1234@127.0.0.1:27017' conn = pymongo.MongoClient(host_info2) print(conn) MongoClient(host=['127.0.0.1:27017'], document_class=dict, tz_aware=False, connect=True) 2.2 mydbs Database 사용하기¶ In [ ]: # 몽고db 객체 생성 knowledge = conn.mydbs In [ ]: # 이렇게도 가능하다. knowledge = conn["mydbs"] In [ ]: print(dir(knowledge)) [&..
https://docs.mongodb.com/mongodb-shell/run-commands/ mongosh Usage — MongoDB Shell Docs Home → MongoDB ShellTo run commands in mongosh, you must first connect to a MongoDB deployment.To display the database you are using, type db:The operation should return test, which is the default database.To switch databases, issue the use helper, docs.mongodb.com
https://pearlluck.tistory.com/46 DB JOIN 정리(INNER/LEFT/RIGHT/OUTER) join(조인) 둘 이상의 테이블을 연결해서 데이터를 검색하는 방법 연결하려면 테이블들이 적어도 하나의 컬럼을 공유하고 있어야함 이 공유하고 있는 컬럼을 PK 또는 FK값으로 사용 종류 1. INNER pearlluck.tistory.com
https://www.mysql.com/ MySQL Over 2000 ISVs, OEMs, and VARs rely on MySQL as their products' embedded database to make their applications, hardware and appliances more competitive, bring them to market faster, and lower their cost of goods sold. Learn More » www.mysql.com # 타이핑 게임 제작 및 기본완성 import random import time # py sound for linux, pip install pyglet 설치 import pyglet import datetime import..
# 타이핑 게임 제작 및 기본완성 import random import time # py sound for linux, pip install pyglet 설치 import pyglet import sqlite3 import datetime import keyboard words = [] # 영어 단어 리스트(1000개 로드) game_cnt = 1 # 게임 시도 횟수 corr_cnt = 0 # 정답 개수 check = dict() # 중복 단어 확인 dictionary # DB 생성 conn = sqlite3.connect("wordgameDB.db",isolation_level=None) cur = conn.cursor() # DB 테이블 생성 # id 자동 증가 # 정답수 # 걸린 시간 # 저장한 시..
1.파이썬 데이터베이스(SQLite)¶ 1-1.테이블 생성¶ In [ ]: import sqlite3 import datetime In [ ]: print('sqlite3 version : ', sqlite3.version) sqlite3 version : 2.6.0 In [ ]: # 데이터 추가 날짜 값 추출하기 now = datetime.datetime.now() print('now : ', now) nowDatetime = now.strftime('%Y-%m-%d %H:%M:%S') print('nowDatetime : ', nowDatetime) now : 2021-10-25 14:26:04.244614 nowDatetime : 2021-1..
https://wikidocs.net/book/159 SQL 전문가 되어보기 국가공인 SQL Professional 준비를 위해 필요한 요점만 쏙쏙 뽑아 정리해 보자. 이 책의 내용 및 예제는 모두 **한국데이터베이스진흥원**이 출판한 **SQ ... wikidocs.net https://goddaehee.tistory.com/71 [SQLD] 자격증 준비 및 합격 후기 (준비 자료 첨부) 안녕하세요. 갓대희 입니다. 매일 바쁘게 일하면서 어느덧 4년차 개발자가 되었습니다. 쇼핑몰 업무를 하면서 정산, 포인트, 예치금 등 Front, Back단 업무보다 쿼리 업무를 많이 하다보니 DB관련된 goddaehee.tistory.com