Skip to content
/ MiniSQL Public

database MiniSQL finished! πŸŽ‰ πŸŽ‰ πŸŽ‰

Notifications You must be signed in to change notification settings

VamosC/MiniSQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

MiniSQL

DataBase MiniSQL

ηΌ–θ―‘ηŽ―ε’ƒ

  • c++17 δ»₯上
  • GNU make

ζ”―ζŒθ―­ζ³•

  • εˆ›ε»Ίθ‘¨

    create table student (
      sid char(8) unique ,                     //char(n)       1 <= n <= 255
      sname char(20) ,
      sage int ,
      scome float ,
      primary key (sid)
    );
    // ζœ€ε€š32δΈͺε±žζ€§
  • εˆ ι™€θ‘¨

    drop table student;
  • εˆ›ε»Ίη΄’εΌ•

    create index stuname on student(sname);
  • εˆ ι™€η΄’εΌ•

    drop index stuname on student;
  • 选择语ε₯

    select * from	student;
    select * from student where sid = '88888888';
    select * from student where sage > 20 and scome < 2000;
    
    // < > <= >= <> = 
  • 插ε…₯θ―­ε₯

    insert into student values('88888888','xiaoming',20,2000.00);
  • εˆ ι™€θ―­ε₯

    delete from student;
    delete from student where sid = '88888888';
  • ι€€ε‡Ίθ―­ε₯

    quit;
  • ζ‰§θ‘Œθ„šζœ¬

    execfile test.txt;

要求

  • θΏ”ε›žζŸ₯θ―’ζ—Άι—΄γ€ζ‰§θ‘ŒθΏ”ε›žζˆ–ε½±ε“ηš„θ‘Œζ•°γ€ι”™θ――δΏ‘ζ―

文仢格式

About

database MiniSQL finished! πŸŽ‰ πŸŽ‰ πŸŽ‰

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published