摘要: equals与"=="的区别 equals比较的是成员变量的值是否相同,而"=="比较的是内存地址值是否相同,示例如下 每new一次就会产生新的内存空间 package test; import org.junit.jupiter.api.Test; public class test2 { @Te 阅读全文
posted @ 2022-09-15 15:39 贰竹 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 查询 查看超时时间 wait_timeout表示闲置时间,默认8小时 show variables like '%timeout%'; 查询包含的字符串 常用方法:like+'%'通配符,locate(),find_in_set() 查询数据量大时采用locate()效率比like高 select 阅读全文
posted @ 2022-09-15 11:58 贰竹 阅读(12) 评论(0) 推荐(0) 编辑