云笔记的数据库设计

开始先要建出前端所对应的内容,例如:id,学号,年龄等等
要注意数据库名称必须与前端名字相对应,否则会报错。

数据库的引入:
driver=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/wznoteserver?characterEncoding=utf-8&serverTimezone=UTC
username=root
password=root

设计并建立表格及sql语句:

根据前端传出的值,一一对应。

note_t_nootbooks
云笔记的数据库设计
note_t_notes
云笔记的数据库设计
note_t_users
云笔记的数据库设计
note_t_jf
云笔记的数据库设计
通过sql语句建立联系:
select * from note_t_users where username=#{username} and password=#{password}

select * from note_t_users where username=#{username}

insert into note_t_users (id,username,password,age,name) values(#{id},#{username},#{password},#{age},#{name})

一分耕耘一分收获