摘要: SELECT a.name, b.COLUMN_NAME, '1' AS aflag FROM sys.tables a LEFT JOIN information_schema.columns b ON b.table_name=a.name AND b.COLUMN_NAME IN('scantime','时间','stime','time') WHERE name LIKE 'PAR_... 阅读全文
posted @ 2016-02-23 10:35 淡墨青云 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1>每行数据加统计列 COUNT(0) OVER() AS TotalCount 2>按指定列排序 SELECT sCellid,N_CI,city,scantime,row_number() over(partition BY city,scantime,SCELLID ORDER BY dist 阅读全文
posted @ 2016-01-26 11:26 淡墨青云 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 最近在用Vertica的时候碰到一个问题,Vertica在运行了一段时间后总是出现类似下面的错误 1: java.sql.SQLException: [Vertica][VJDBC](5065) 2: ERROR: Too many ROS containers exist for the f... 阅读全文
posted @ 2016-01-22 20:39 淡墨青云 阅读(1137) 评论(0) 推荐(0) 编辑
摘要: 1: /// 2: /// FTP 管理类 3: /// 4: public class FTPManage 5: { 6: private string _Host; //服务器地址 7: private int? _Port; //端口号 8: private... 阅读全文
posted @ 2016-01-14 17:04 淡墨青云 阅读(912) 评论(0) 推荐(0) 编辑
摘要: 1: create table tmp( 2: name varchar(50), 3: rows int, 4: reserved varchar(50), 5: data varchar(50), 6: index_size varchar(50), 7: unused varchar(50) 8: ); 9: 10... 阅读全文
posted @ 2016-01-14 16:35 淡墨青云 阅读(520) 评论(0) 推荐(0) 编辑
摘要: 1: function request(paras) { 2: var url = location.href; 3: var paraString = url.substring(url.indexOf("?") + 1, url.length).split("&"); 4: var paraObj = {}; 5: for (... 阅读全文
posted @ 2016-01-12 12:47 淡墨青云 阅读(780) 评论(0) 推荐(0) 编辑
摘要: 1: [DllImport("user32")] 2: public static extern int SendMessage(IntPtr hwnd, int wMsg, int wParam, IntPtr lParam); 3: public const int WM_SETREDRAW = 0xB; 4: [DllImport("user32.dll")... 阅读全文
posted @ 2016-01-11 21:09 淡墨青云 阅读(350) 评论(0) 推荐(1) 编辑
摘要: 源码和插件都在后面,如果不想看我神神叨叨的可以直接到文章后面下载一 .找插件在使用Windows Live Writer 经常要用到插入代码的功能,根据博客园中教程,分别使用了:WindowsLiveWriter.CNBlogs.CodeHighlighter 和 SourceCodePlugin_... 阅读全文
posted @ 2016-01-11 20:58 淡墨青云 阅读(813) 评论(4) 推荐(0) 编辑
摘要: 1 /// 2 /// 将DataTable转为Json字符串 3 /// 4 /// 5 /// 6 public static string DataTable2Json(DataTable dt) 7 ... 阅读全文
posted @ 2016-01-11 11:55 淡墨青云 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 该方法为网上整理1. 新继承一个列表控件 新控件中重写两个方法: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Web.UI.We... 阅读全文
posted @ 2016-01-04 15:42 淡墨青云 阅读(555) 评论(0) 推荐(1) 编辑