
create user 'movie_user'@'%' identified by '1234';
grant all on movieDB.* to 'movie_user'@'%' with grant option;

drop database if exists movieDB;
create database if not exists movieB;
use movieDB;
create table if not exists movie(
id int not null auto_increment primary key,
title varbinary(20) not null,
genre varchar(20) null,
myear date null,
price int null,
photo varchar(50) null);'2022 > DB 데이터베이스' 카테고리의 다른 글
| [DB] E-R 모델 (0) | 2022.11.24 |
|---|---|
| [DB] 정규화 (1) | 2022.11.17 |
| 0) [DB] SQL 응용 3 - 트랜잭션 (0) | 2022.11.03 |
| [DB]SQL응용 2 (트리거, 사용자 정의 함수) (0) | 2022.11.03 |
| [DB] SQL 응용 1 (내장 함수 | 저장 프로시저) (0) | 2022.11.03 |