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