开始先要建出前端所对应的内容,例如: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})

一分耕耘一分收获

相关文章:

  • 2021-10-29
  • 2022-01-07
  • 2021-08-23
  • 2022-01-07
  • 2021-11-23
  • 2021-11-23
猜你喜欢
  • 2021-12-17
  • 2021-12-19
  • 2021-09-23
  • 2021-12-19
  • 2021-12-09
  • 2021-09-01
相关资源
相似解决方案