Skip to content

Commit

Permalink
๐Ÿ“ [Docs] SQL Data Types and Schemas (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
luke0408 committed Oct 17, 2023
1 parent 4253e7f commit 3bb9a6e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 5 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# SQL Data Types and Schemas

> ์ž‘์„ฑ์ž: ์ตœ์„ ๊ทœ
## SQL Data Types

date:

- YYYY-MM-DD
- ex. 2021-01-01

time:

- HH:MM:SS
- ex. 12:30:00

timestamp:

- YYYY-MM-DD HH:MM:SS
- ex. 2021-01-01 12:30:00

interval:

- ์‹œ๊ฐ„ ๊ฐ„๊ฒฉ์„ ํ‘œํ˜„
- ex. 1 year 2 months 3 days 4 hours 5 minutes 6 seconds

## Index creation

```sql
create table student (
ID varchar (5) primary key,
name varchar (20) not null,
dept_name varchar (20),
tot_cred numeric (3,0) default 0);

create index studentID_index on student(ID)
```

0 comments on commit 3bb9a6e

Please sign in to comment.