목록DataBase (35)
wasup
회원, 게시물 테이블 create DROP DATABASE IF EXISTS mydb1; CREATE DATABASE mydb1; USE mydb1; CREATE TABLE 회원( 번호 int PRIMARY KEY AUTO_INCREMENT, 성명 varchar(20), 주민번호 char(13) ); CREATE TABLE 게시물( 번호 int PRIMARY KEY AUTO_INCREMENT, 제목 varchar(20) NOT NULL UNIQUE, 내용 varchar(200) NULL, 작성자번호 int NOT NULL, 작성일 timestamp DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (작성자번호) REFERENCES 회원(번호) ); insert INSERT INTO 회..
보호되어 있는 글입니다.
컨테이너 접근 docker exec -it mysql1 bash C:\Users\W>docker exec -it mysql1 bash root@a8526aa51bb7:/# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 17 Server version: 5.7.34 MySQL Community Server (GPL) Copyright (c) 2000, 2021, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affilia..
계속 오류나서 컨테이너 삭제하고 시도합니다. C:\Users\W>docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e424c77dc540 mysql:5.7 "docker-entrypoint.s…" About an hour ago Up About an hour 3306/tcp, 33060/tcp, 0.0.0.0:3307->3307/tcp, :::3307->3307/tcp mysql2 f668fc6c47e6 mysql "docker-entrypoint.s…" 24 hours ago Up 2 hours 0.0.0.0:3306->3306/tcp, :::3306->3306/tcp, 33060/tcp mysql1 C:\Users\W>docker ..
보호되어 있는 글입니다.
보호되어 있는 글입니다.
SQL INNER JOIN Keyword www.w3schools.com/sql/sql_join_inner.asp SQL INNER JOIN Keyword SQL INNER JOIN Keyword SQL INNER JOIN Keyword The INNER JOIN keyword selects records that have matching values in both tables. INNER JOIN Syntax SELECT column_name(s) FROM table1 INNER JOIN table2 ON table1.column_name = table2.column_name; Demo Database I www.w3schools.com mysql 접근 C:\Users\W>docker ps -a CON..
현재 진행중인 프로세스 상황(ps) docker ps 이전&현재 진행중인 프로세스 상황(ps) docker ps -a C:\Users\W>docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 이미지 다운 docker pull 이미지명:tag (버전 명시가 없으면 최신버전) docker pull mysql C:\Users\W>docker pull mysql Using default tag: latest latest: Pulling from library/mysql f7ec5a41d630: Downloading [=> ] 552.1kB/27.14MB 9444bb562699: Pulling fs layer 6a4207b96940: Pulling fs..