摘要:
def GetDates(String startDate, String endDate){ Date d1 = new SimpleDateFormat("yyyyMMdd").parse(startDate);//定义起始日期 Date d2 = new SimpleDateFormat("y 阅读全文
摘要:
当excel里有一堆乱序的名称放在我们面前时,要求我们统计出每个名称出现了多少次,并按照从大到小的顺序排列起来,该如何快速做到呢?利用数据透视表即可快速完成. 1.打开数据表,选中要统计的数据,点开“插入”,点击“数据透视表” 2.然后会出现一个页面,点击“新工作表”,然后点击“确定” 3.在新表中 阅读全文
摘要:
ArrayList actualList = ["1","2","3"] ArrayList expectList = ["1","5","6"] containsList(actualList, expectList ) //Check the expectList in actualList static def containsList(ArrayList actualList, Arr... 阅读全文
摘要:
having 后面只能用 COUNT(*),不能用 cnt 阅读全文
摘要:
select top 100 * from ClientSecurityReturnIndex where EffectiveDate=(select MAX(EffectiveDate) from ClientSecurityReturnIndex as tb where ClientSecurityId=ClientSecurityReturnIndex.ClientSecurityId) ... 阅读全文
摘要:
select AccountId,COUNT(*) as cnt from AccountReturnIndex group by AccountId having COUNT(*)<20 阅读全文
摘要:
create table #Account(AccountId int) insert into #Account select 1500722090 union select 1500722091 union select 1500722092 union select 1500722316 union select 1500722317--'union' is auto filter du... 阅读全文
摘要:
import java.util.Calendar; import java.text.Format; import java.text.SimpleDateFormat String str ="20130630" SimpleDateFormat format= new SimpleDateFormat("yyyyMMdd"); Date date=format.parse(str... 阅读全文
摘要:
File file = new File(filePath); XSSFWorkbook wb = new XSSFWorkbook(new FileInputStream(filePath)); XSSFSheet sheet = wb.getSheet(sheetName); int rows = sheet.getPhysicalNumberOfRows() Row row1 = shee... 阅读全文
摘要:
1.随机获取n条数据 这时每次运行取到的数据都是一样的,如果想要不一样的,如下 2.随机获取10%数据 阅读全文