1. Create Schema

Open new Query page and input "CREATE SCHEMA '$schema name$'. After then click execution(⚡).
Now you can see new schema, after refreshing the schema list.

Open new query page icon

 

2. Create Table

If you write down a code for creating a table right below the code creating a schema. It wouldn't work.
Becasue the system would read the code for creating the schema again and then it occur error. 
To avoid the error, you could highlight the code which the execution should read or open new query page.

*To avoid running the same code again by accident, you can just highlight and press "Ctrl + / (slash)"

반응형

출처 : https://itholic.github.io/database-cardinality/
출처 : https://opentutorials.org/module/4134
출처 : https://opentutorials.org/module/4134

위 그림의 예시)

A가 만 18세 이상(유권자) 테이블, B가 투표한 자 테이블이다.

유권자(A)는 투표한 자(B)일 수도 있고 아닐 수도 있다. 따라서 B는 Optional이다.

투표한 자(B)는 유권자(A)일 수밖에 없다. 따라서 A는 Mandatory이다.

 

출처 : https://opentutorials.org/module/4134

 

반응형

+ Recent posts