摘要: MERGE语句是SQL语句的一种。在SQL Server、Oracle数据库中可用,MySQL、PostgreSQL中不可用。MERGE是Oracle9i新增的语法,用来合并UPDATE和INSERT语句。 Merge语法 编辑 Merge语法 MERGE [hint] INTO [schema ] 阅读全文
posted @ 2016-05-20 11:23 张小帅 阅读(207) 评论(0) 推荐(0) 编辑
摘要: datatable dt = new datatable foreach(var row in dt.rows.cast<datarow>()) { } 阅读全文
posted @ 2016-03-09 10:09 张小帅 阅读(5434) 评论(0) 推荐(0) 编辑
摘要: Form child =new Form(); point p = new point(); p.x = (pform.width-child.width)/2; p.y = (pform.height-child.height)/2; child.location = p; child.tople 阅读全文
posted @ 2016-02-24 10:35 张小帅 阅读(621) 评论(0) 推荐(0) 编辑
摘要: MySQL中group_concat函数完整的语法如下:group_concat([DISTINCT] 要连接的字段 [Order BY ASC/DESC 排序字段] [Separator '分隔符'])基本查询mysql> select * from aa;+------+------+| id|... 阅读全文
posted @ 2015-12-09 17:43 张小帅 阅读(453) 评论(0) 推荐(0) 编辑
摘要: private void formclosed { FlushMemory(); } [DllImport("kernel32.dll")] private static extern bool SetProcessWorkingSetSize(IntPtr process, int minSiz... 阅读全文
posted @ 2015-10-28 20:04 张小帅 阅读(1000) 评论(0) 推荐(0) 编辑
摘要: C#生成并引用资源文件可以使用任何信息,图片,字符,尤其是图片信息,比DLL要广泛得多。下面创建一个资源文件usingSystem;usingSystem.Resources;usingSystem.Drawing;namespaceConsoleApplication1{//////Class1的... 阅读全文
posted @ 2015-10-10 10:36 张小帅 阅读(717) 评论(0) 推荐(0) 编辑
摘要: package com.example.testlistloadimage;import java.io.IOException;import java.io.InputStream;import java.lang.ref.SoftReference;import java.net.HttpURL... 阅读全文
posted @ 2015-06-29 07:23 张小帅 阅读(163) 评论(0) 推荐(0) 编辑
摘要: android 中 intent 如何传递arraylist?hashmapintent可以传递 list 、list等等,但我没找到有object。所以也没list>类型,在此可以这样intent intent = new intent();intent.putExtra("list",newAr... 阅读全文
posted @ 2015-05-27 07:13 张小帅 阅读(1598) 评论(0) 推荐(0) 编辑
摘要: 学习android 记录 第一次写随笔 先试验下流程一 jsonandroid 解析json 有多种 如json lib 等,还是应该采用官方吧gson,jsonreader(主要是sdk2.0,2.1,2.22没有jsonreader,其实是一样的),方便 简单使用GSON 非常简单首先下载gso... 阅读全文
posted @ 2015-05-26 22:07 张小帅 阅读(265) 评论(0) 推荐(0) 编辑