汉字三种排序 按拼音排序 order by nlssort(columnName,'NLS_SORT=SCHINESE_PINYIN_M') 按笔画数排序 order by nlssort(columnName,'NLS_SORT=SCHINESE_STROKE_M') 简体中文按照第一顺序是“笔画数”,第二顺序是“部首”进行排序; 按部首排序 order by nlssort(columnName,'NLS_SORT=SCHINESE_RADICAL_M') 简体中文按照第一顺序是“部首”,第二顺序是“笔画数”进行排序 自定义排序 借助DECODE函数,自定义顺序排序 例:规定studentid为3的排第一位,为4的排第二位,剩下的按照studentid排序 order by decode(studentid,3,0,4,1),studentid Oracle 排序相关 Oracle
题目 Implementint sqrt(int x). Compute and return the square root of_x_, where x is guaranteed to be a non-negative integer. Since the return type is an integer, the decimal digits are truncated and only the integer part of the result is returned. Example 1: Input: 4 Output: 2 Example 2: Input: 8 Output: 2 Explanation: The square root of 8 is 2.82842..., and since the decimal part is truncated, 2 is returned. 解法 一:使用Math.sqrt()方法 代码 class Solution { public int mySqrt(i.... [69] Sqrt(x) LeetCode
添加依赖 <!-- swagger --> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version> </dependency> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger-ui</artifactId> <version>2.9.2</version> </dependency> 配置不同环境是否启用 在相应配置文件中添加(以yml为例) swagger: enable: true 创建配置类 @Configuration @EnableSwagger2 public class SwaggerConfig.... SpringBoot 集成 Swagger SpringBoot
File Header Edit -> File and Code Templates /** * * @author liyf * Created in ${YEAR}-${MONTH}-${DAY} */ Live Templates * * * 功能描述: * $params$ * @return $return$ * @author liyf */ params groovyScript("def result=''; def params=\"${_1}\".replaceAll('[\\\\[|\\\\]|\\\\s]', '').split(',').toList(); for(i = 0; i < params.size(); i++) {result+=' * @param ' + params[i] + ((i < params.size() - 1) ? '\\n' : '')}; return result", methodParameters()) logger private static final Logger logger = .... IDEA 模板记录 Java