zoukankan      html  css  js  c++  java
  • 小项目的主要流程1

         项目名称:论坛    

      项目开始
            -- 选择数据库
            use bbs;
            -- 创建用户表
            create table user(
                user_id int unsigned not null primary key auto_increment comment '主键id',
                user_name varchar(20) not null unique key comment '用户名',
                user_password char(32) not null comment '用户密码'
                );
            -- 创建帖子表
            create table publish(
                pub_id int unsigned not null primary key auto_increment comment '主键id',
                pub_title varchar(60) not null comment '标题',
                pub_content text not null comment '内容',
                pub_owner varchar(20) not null comment '作者',
                pub_time int unsigned not null comment '发帖时间',
                pub_hits int unsigned not null default 0 comment '浏览次数'
                );
            -- 创建回帖表
            create table reply(
                rep_id int unsigned not null primary key auto_increment comment '主键id',
                rep_pub_id int unsigned not null comment '楼主发帖的id',
                rep_user varchar(20) not null comment '回复者的名字',
                rep_content text not null comment '回复内容',
                rep_time int unsigned not null comment '回复时间'
                );

  • 相关阅读:
    构造函数以及四种方法的调用
    函数声明与函数表达式的区别
    display:inline-block,block,inline的区别与用法
    SASS 使用(vs code)
    SASS 使用(安装)
    vue 学习笔记1 入门
    ES6学习5 字符串的扩展
    ES6学习4 变量的解构赋值
    es6 学习2 模板字符
    es6 学习1 let表示变量 、const表示常量 与 var 变量的区别
  • 原文地址:https://www.cnblogs.com/zgh0715/p/6120240.html
Copyright © 2011-2022 走看看