DROP
-
DDL _ CREATE / DROP / ALTERSQL/sql 문법(mysql, mariaDB) 2024. 4. 27. 08:30
▤ 목차">HTML 삽입미리보기할 수 없는 소스✔ create create 명령어는 데이터베이스와 테이블을 만들 수 있다.⌨ 형식1. 데이터 베이스 만들기CREATE DATABASE 데이터베이스이름2. 테이블 만들기CREATE TABLE 테이블명(칼럼명 자료형 기타조건들);💻 코드로 보기1. 데이터 베이스 만들기CREATE DATABASE School;2. 테이블 만들기CREATE TABLE student(bun INT primary KEY,irum VARCHAR(10) NOT NULL); 프롬프트 사용 시데이터 베이스 생성MariaDB [(none)]> show databases; create database demo; show databases; ✔ drop존재하는 테이블 전체를 ..