摘要: -- DQL条件查询 -- 1,查询ID大于2的信息 select * from agent where AgentID>2; -- 2,查询ID大于等于2的信息 select * from agent where AgentID>=2; -- 3,查询ID大于2 并且 电话是0810的 selec 阅读全文
posted @ 2022-11-09 23:44 YE- 阅读(20) 评论(0) 推荐(0) 编辑
摘要: -- DQL基础查询 -- 查询多个字段 -- 查询Agentname和Phone两列 select Agentname,Phone from agent; -- 列名可以用*代替,少用*号 SELECT *from agent; -- 查询地址信息,DISTINCT去除记录 select DIST 阅读全文
posted @ 2022-11-09 23:09 YE- 阅读(15) 评论(0) 推荐(0) 编辑
摘要: SELECT *from agent; INSERT into agent (AgentID,AgentName,AgentAddress,Phone) values (1,'ANALYZE','beijing','188'); update agent SET AgentID = 4 where 阅读全文
posted @ 2022-11-09 22:45 YE- 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 1. 查询user表中创建数据 首先创建mysql数据库,并更新里面内容 2.创建模块,导入坐标 3. 编写MyBatis核心配置文件 4.编写SQL映射文件 5.编码 阅读全文
posted @ 2022-11-09 22:17 YE- 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 刚刚去洗漱了,想了些思路记录下来 这是建立的表格 思路:所谓的登入就是匹配数据库里面的信息是否匹配,匹配则跳转页面,不匹配则提示查无此内容 所谓的注册就是添加数据库的信息,并记录,显示添加成功 阅读全文
posted @ 2022-11-09 00:21 YE- 阅读(35) 评论(0) 推荐(0) 编辑