- 博客(5)
- 收藏
- 关注
原创 mysql 连接查询
#分组查询/** select 查询列表 from 表名 where 筛选条件 group by 分组列表 having 分组后筛选 order by 排序列表; 执行顺序: 1 、from 2、where 3、group by 4、having 子句 5、select 子句 6、order by 子句 特点: 1、查询列表往往是 分组函数 和 分组字段 2、分组查询筛选分为两类 筛选的表 使用的关键词
2021-04-25 17:04:28
74
原创 mysql 函数学习
字符函数– concat 拼接select concat(‘hell0,’,title) from blog ;– length 获取字符长度select length(title) from blog where id = 1;– char_length 获取字符个数select char_length(title) from blog where id = 1;– substr 截取字符串/**substr 起始索引为 1substr(str,起始索引,截取字符长度)substr
2021-03-19 18:02:44
61
原创 mysql 条件查询学习笔记
– like 模糊查询-- name m开头select * from tag where name like 'm%';-- name m结尾select * from tag where name like '%m';-- name 第二个字符为yselect * from tag where name like '_y%' ;-- name 第二个字符为_ escape 为定义通配符select * from tag where name like '_/_y';select
2021-03-18 10:09:04
58
原创 linux 环境下搭建 tomcat 服务
第一步:wget tomcat地址(官网找)第二步骤:进行解压tar zxvf apache-tomcat-7.0.68.tar.gz第三步骤(修改默认端口号):vim /conf/server.xml找到以下配置改成:提示: i 默认进入输入模式Esc 表示退出输入模式:wq 保存修改第四步骤(结束):cd bin./startup.sh如果没有启动成功可以查看日志:logs/catalina.out...
2021-01-28 17:41:38
53
原创 JAVA怎么连接mysql
第一步pom.xml加入mysql <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.25</version> ...
2019-09-26 15:54:06
167
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人