摘要: int[] arr={8,1,5,3,7,2,6,4}; //循环数组长度 8 for (int i = 0; i arr[j+1] 升序 if(arr[j]<arr[j+1]){ //赋值 让当前等于e int e=arr[j]; /... 阅读全文
posted @ 2018-09-20 20:49 韦邦杠 阅读(188) 评论(0) 推荐(1) 编辑
摘要: 语法 创建索引 create index 索引名字 on 表名 (需要添加索引字段名) 创建唯一索引 create unique index 索引名字 on 表名 (需要添加索引字段名) 删除索引 drop index 索引名字 查看表上的所有索引 show index from lagou_pos 阅读全文
posted @ 2018-09-20 11:49 韦邦杠 阅读(596) 评论(0) 推荐(0) 编辑
摘要: 创建数据库、表 添加数据 方式一:使用if 方式二:使用case 方法三: with rollup 阅读全文
posted @ 2018-09-20 10:26 韦邦杠 阅读(24787) 评论(0) 推荐(0) 编辑