摘要: 暂停约束 select 'alter table '||table_name||' disable constraint '||constraint_name||';' from user_constraints where constraint_type='R'; 启用约束select 'alte 阅读全文
posted @ 2016-09-14 10:39 三醉 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 1. 1 private void Add() 2 { 3 if (this.InvokeRequired) 4 { 5 this.Invoke(new MethodInvoker(delegate { Add(); })); 6 return; 7 ... 阅读全文
posted @ 2016-07-18 14:48 三醉 阅读(634) 评论(0) 推荐(0) 编辑
摘要: //imports SetLocalTime function from kernel32.dll [DllImport("kernel32.dll", SetLastError=true)] public static extern int SetLocalTime (ref SystemTime... 阅读全文
posted @ 2015-09-30 10:17 三醉 阅读(196) 评论(0) 推荐(0) 编辑
摘要: using Microsoft.CSharp;using System;using System.CodeDom;using System.CodeDom.Compiler;using System.Collections.Generic;using System.IO;using System.L... 阅读全文
posted @ 2015-09-23 10:04 三醉 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 关闭 阅读全文
posted @ 2015-06-19 10:37 三醉 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 使用文件流读写大文件 1 //文件流只能单一读取或者写入操作,文件流需要做自动释放,不然占据文件句柄造成其它进程无法访问 2 //1.、将数据读取到byte数组,2.将byte数组中的数据写入到文件 3 using (FileStream fsRead... 阅读全文
posted @ 2015-04-12 21:56 三醉 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1.1 Response.ContentType = "application/x-jpg-compressed";//下载jpg格式文件2 Response.AddHeader("Content-Disposition", "attachment;filename=z.... 阅读全文
posted @ 2015-03-25 17:21 三醉 阅读(225) 评论(0) 推荐(0) 编辑
摘要: fileupload服务控件上传int leng = FileUpload1.PostedFile.ContentLength;//获取文件大小 string fileName = FileUpload1.PostedFile.FileName;//获取文件名 ... 阅读全文
posted @ 2015-03-25 16:48 三醉 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1 private void button1_Click(object sender, EventArgs e) 2 {//计时器 3 System.Diagnostics.Stopwatch watcher = new System.Diagnostic... 阅读全文
posted @ 2015-01-12 15:01 三醉 阅读(145) 评论(0) 推荐(0) 编辑
摘要: --类型转换函数--+首先是一个算术运算符,只有当两边都是字符串类型的时候才是连接符select 1+'a'--cast(源数据 as 目标类型)select cast(1 as CHAR)+'a'select datalength(cast(1 as CHAR))--convert(目标类型,源数... 阅读全文
posted @ 2014-11-20 22:35 三醉 阅读(146) 评论(0) 推荐(0) 编辑