前言 说起MySQL的查询优化,相信大家收藏了一堆奇技淫巧:不能使用SELECT *、不使用NULL字段、合理创建索引、为字段选择合适的数据类型..... 你是否真的理解这些优化技巧?是否理解其背后的工作原理?在实际场景下性能真有提升吗?我想未必。因而理解这些优化建议背后的原理就尤为重要,希望本文能 ...
分类:
数据库 时间:
2021-06-02 17:26:27
阅读次数:
0
func main() { s1 := "Hello" + " " + "World" fmt.Println(s1) //Hello World ss := []string{"Hello", "World"} fmt.Println(strings.Join(ss, " ")) //Hello ...
分类:
其他好文 时间:
2021-06-02 17:07:23
阅读次数:
0
我用ssh连上了ubuntu虚拟机, 尝试xclip命令时, 输入ls | xclip -sel c, 得到报错: Error: Can't open display: (null). 搜索后, 发现好像和X11和DISPLAY有关. 还说ssh应该打开-X选项. 可用ssh -X连接, 还是不行. ...
分类:
其他好文 时间:
2021-06-02 17:07:02
阅读次数:
0
func main() { s := "Hello" b := []byte(s) fmt.Println(len(b), cap(b)) fmt.Println(b) } 5 8[72 101 108 108 111] //字符串转换为字节 []byte(s) []byte转换为 string 转 ...
分类:
其他好文 时间:
2021-06-02 17:04:01
阅读次数:
0
ArrayList实现 code import java.util.ArrayList; import java.util.Collections; public class PokerDemo { public static void main(String[] args) { // 使用Arra ...
分类:
编程语言 时间:
2021-06-02 16:52:04
阅读次数:
0
public class HelloWorld { public static void main(String[] args) { //大小写十分敏感 String Man="qinjiang"; String man="qinjiang"; String Ahello="qinjiang"; S ...
分类:
其他好文 时间:
2021-06-02 16:40:41
阅读次数:
0
单列集合的工具类 // Lists // 创建集合 List<String> list1 = Lists.newArrayList(); List<String> list2 = Lists.newArrayListWithCapacity(8); List<String> list3 = List ...
分类:
其他好文 时间:
2021-06-02 16:29:39
阅读次数:
0
题目 package whale.leetcode.simple; /** * @Author: WhaleFall541 * @Date: 2021/5/29 20:30 */ public class AddTwoSumLinkedList { public static class ListN ...
分类:
其他好文 时间:
2021-06-02 16:21:23
阅读次数:
0
ArrayList list = new ArrayList(); // 第一次扩容 for (int i = 0; i < 10; i++) { list.add(i); } ArrayList list1 = list; for (int i = 0; i < 5; i++) { list1.a ...
分类:
其他好文 时间:
2021-06-02 16:00:48
阅读次数:
0
// 字符处理的相关api // String.slice(start?: number, end?: number): string // String.substr(from: number, length?: number): string // String.substring(start: ...