代码改变世界

sql行转列,列转行

2017-08-11 16:14 by Lose丶word, 98 阅读, 0 推荐, 收藏, 编辑
摘要:http://www.cnblogs.com/hbwy/p/4914000.html 阅读全文

sql的for循环代码

2017-07-28 09:53 by Lose丶word, 655 阅读, 0 推荐, 收藏, 编辑
摘要:// java 代码 把pids用“,”隔开的 转为集合 String[] linePid = dbcIU001.getLinePId().split(","); ArrayList<String> linePIds = new ArrayList<String>(); Collections.ad 阅读全文

时间范围查询的sql代码

2017-07-28 09:42 by Lose丶word, 1645 阅读, 0 推荐, 收藏, 编辑
摘要:mysql: <if test="startTime != null"> <![CDATA[and date_format(time,'%Y-%m-%d')>=date_format(#{startTime},'%Y-%m-%d')]]> </if> <if test="endTime != nul 阅读全文

shp文件的解析方法

2017-07-26 10:15 by Lose丶word, 2221 阅读, 0 推荐, 收藏, 编辑
摘要:// 需要先引入gdal.jar架包,同时把文件夹下的dll文件放在项目的根目录。(亲测32位的有效) // 文件地址 : http://pan.baidu.com/s/1mhAoqvQ public String readSHP(String path,String addvcd) { // 注册 阅读全文

dbf文件的解析方法

2017-07-26 09:53 by Lose丶word, 1128 阅读, 0 推荐, 收藏, 编辑
摘要:// 先下载导入dbf的jar架包 http://pan.baidu.com/s/1jIqVIcA InputStream fis = null; String sresult = ""; try { // 读取文件的输入流 fis = new FileInputStream(path); // 根 阅读全文

通过URl直接获取URL页面的内容

2017-07-26 09:49 by Lose丶word, 869 阅读, 0 推荐, 收藏, 编辑
摘要:StringBuffer resultLR = new StringBuffer(); try { URL url = new URL("xxx"); try { //获得此 URL 的内容 URLConnection conn = url.openConnection(); InputStream 阅读全文