테이블 생성하기 방법
방법1.
MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| department |
| information_schema |
| mysql |
| performance_schema |
| study |
| sys |
| test01 |
+--------------------+
7 rows in set (0.001 sec)
MariaDB [(none)]> use department;
Database changed
MariaDB [department]> create table dpm (dpm_code int not null primary key, dpm_name varchar(20) not null, upper_dpm_code int null);
Query OK, 0 rows affected (0.029 sec)
방법 2.
'자격증 > sqld' 카테고리의 다른 글
[sqld 2장]PL/SQL 구문에서의 DML, DCL, DDL 사용법 (0) | 2025.03.05 |
---|---|
maria db 테이블에 데이터 넣기 (0) | 2025.02.20 |
10061 Can't connect to server on 문제 해결 방법 (0) | 2025.02.20 |
[sqld 과목2]SQL Server 과 Oracle 차이점 정리 & connect by prior (0) | 2025.02.13 |
[sqld 과목 1]데이터 모델링의 이해 (0) | 2025.02.11 |