Quick SQL Example

A Quick SQL example

Case

Quick SQL

# prefix: "app"
# drop: true

TEACHER /insert 2
    teach_name vc20
    teach_email vc30
    /unique teach_name, teach_email
    
COURSE  /insert 2 -- The text here go into the table comment
    course_name 
    teacher_id /fk teacher  -- The text go inot the column comment
    
STUDENT /insert 10
  stud_id vc20
  stud_name 
  stud_email
  
COURSE_STUDENT /insert 5
  course_id /fk COURSE
  student_id /fk STUDENT

Generated Quick SQL

Last updated