diff --git "a/12\346\236\227\344\277\212\344\274\237/0905\347\254\254\344\270\200\346\254\241\347\254\224\350\256\260.md" "b/12\346\236\227\344\277\212\344\274\237/0905\347\254\254\344\270\200\346\254\241\347\254\224\350\256\260.md" new file mode 100644 index 0000000000000000000000000000000000000000..fae05c4def5acf2eef996074ca1e2fd8f41c4b46 --- /dev/null +++ "b/12\346\236\227\344\277\212\344\274\237/0905\347\254\254\344\270\200\346\254\241\347\254\224\350\256\260.md" @@ -0,0 +1,5 @@ +分析大二如何规划时间和学习,多余时间应该怎么用。 + +多关注招聘网和计算机网络 + +加强学习 \ No newline at end of file diff --git "a/12\346\236\227\344\277\212\344\274\237/0912\347\224\265\345\275\261\344\275\234\344\270\232.md" "b/12\346\236\227\344\277\212\344\274\237/0912\347\224\265\345\275\261\344\275\234\344\270\232.md" new file mode 100644 index 0000000000000000000000000000000000000000..616082a09315d42847f5940faa3be37ad7625eb6 --- /dev/null +++ "b/12\346\236\227\344\277\212\344\274\237/0912\347\224\265\345\275\261\344\275\234\344\270\232.md" @@ -0,0 +1,213 @@ +. + +/*==============================================================*/. +/* DBMS name: MySQL 5.0 */ +/* Created on: 2023/9/12 19:57:54 */ +/*==============================================================*/ + + +drop table if exists actor; + +drop table if exists castprofile; + +drop table if exists cj; + +drop table if exists freely; + +drop table if exists movie; + +drop table if exists moviereviews; + +drop table if exists official; + +drop table if exists people; + +drop table if exists recommend; + +drop table if exists shortcomment; + +drop table if exists window; + +drop table if exists 倾向于演员的评价; + +/*==============================================================*/ +/* Table: actor */ +/*==============================================================*/ +create table actor +( + yy_bj varchar(11) not null, + yy_zy varchar(11) not null, + yy_dy varchar(11) not null, + yy_cydy varchar(11) not null, + movie_idd varchar(11) not null, + primary key (yy_cydy) +); + +/*==============================================================*/ +/* Table: castprofile */ +/*==============================================================*/ +create table castprofile +( + actor_name varchar(11) not null, + people_sex varchar(11) not null, + imdb_id varchar(11) not null, + yy_cydy varchar(11) not null, + borth varchar(222) not null, + primary key (imdb_id) +); + +/*==============================================================*/ +/* Table: cj */ +/*==============================================================*/ +create table cj +( + window_id varchar(11) not null, + yy_cydy varchar(11) not null, + primary key (window_id, yy_cydy) +); + +/*==============================================================*/ +/* Table: freely */ +/*==============================================================*/ +create table freely +( + short_id int not null, + people_name varchar(11) not null, + primary key (short_id, people_name) +); + +/*==============================================================*/ +/* Table: movie */ +/*==============================================================*/ +create table movie +( + movie_type int not null, + movie_time time not null, + movie_country varchar(20) not null, + movie_language varchar(20) not null, + movie_datetime datetime not null, + movie_name varchar(10) not null, + movie_idd varchar(11) not null, + primary key (movie_idd) +); + +/*==============================================================*/ +/* Table: moviereviews */ +/*==============================================================*/ +create table moviereviews +( + yp_yp varchar(255) not null, + yp_xj varchar(5) not null, + y[_ybh varchar(11) not null, + yp_jl varchar(255) not null, + primary key (y[_ybh) +); + +/*==============================================================*/ +/* Table: official */ +/*==============================================================*/ +create table official +( + gf_name varchar(11) not null, + gf_level varchar(11) not null, + gf_id varchar(11) not null, + movie_idd varchar(11) not null, + primary key (gf_id) +); + +/*==============================================================*/ +/* Table: people */ +/*==============================================================*/ +create table people +( + people_age int not null, + people_name varchar(11) not null, + window_id varchar(11) not null, + 性别 varchar(11) not null, + primary key (people_name) +); + +/*==============================================================*/ +/* Table: recommend */ +/*==============================================================*/ +create table recommend +( + people_name varchar(11) not null, + y[_ybh varchar(11) not null, + primary key (people_name, y[_ybh) +); + +/*==============================================================*/ +/* Table: shortcomment */ +/*==============================================================*/ +create table shortcomment +( + short_hot varchar(11) not null, + short_new varchar(11) not null, + short_id int not null, + short_good varchar(11) not null, + short_tl varchar(255) not null, + primary key (short_id) +); + +/*==============================================================*/ +/* Table: window */ +/*==============================================================*/ +create table window +( + window_actor varchar(11) not null, + window_people varchar(11) not null, + window_id varchar(11) not null, + movie_idd varchar(11) not null, + primary key (window_id) +); + +/*==============================================================*/ +/* Table: 倾向于演员的评价 */ +/*==============================================================*/ +create table 倾向于演员的评价 +( + short_id int not null, + yy_cydy varchar(11) not null, + primary key (short_id, yy_cydy) +); + +alter table actor add constraint FK_cyry foreign key (movie_idd) + references movie (movie_idd) on delete restrict on update restrict; + +alter table castprofile add constraint FK_introduce foreign key (yy_cydy) + references actor (yy_cydy) on delete restrict on update restrict; + +alter table cj add constraint FK_cj foreign key (window_id) + references window (window_id) on delete restrict on update restrict; + +alter table cj add constraint FK_cj2 foreign key (yy_cydy) + references actor (yy_cydy) on delete restrict on update restrict; + +alter table freely add constraint FK_freely foreign key (short_id) + references shortcomment (short_id) on delete restrict on update restrict; + +alter table freely add constraint FK_freely2 foreign key (people_name) + references people (people_name) on delete restrict on update restrict; + +alter table official add constraint FK_gfpj foreign key (movie_idd) + references movie (movie_idd) on delete restrict on update restrict; + +alter table people add constraint FK_jr foreign key (window_id) + references window (window_id) on delete restrict on update restrict; + +alter table recommend add constraint FK_recommend foreign key (people_name) + references people (people_name) on delete restrict on update restrict; + +alter table recommend add constraint FK_recommend2 foreign key (y[_ybh) + references moviereviews (y[_ybh) on delete restrict on update restrict; + +alter table window add constraint FK_hot foreign key (movie_idd) + references movie (movie_idd) on delete restrict on update restrict; + +alter table 倾向于演员的评价 add constraint FK_倾向于演员的评价 foreign key (short_id) + references shortcomment (short_id) on delete restrict on update restrict; + +alter table 倾向于演员的评价 add constraint FK_倾向于演员的评价2 foreign key (yy_cydy) + references actor (yy_cydy) on delete restrict on update restrict; +