摘要: 一:首先两者都是引用传递,都是按地址传递的。二: 区别(1)ref 默认必须初始化,out不需要显式初始化。例如: 1 int num1=10;2 3 int num2;4 5 refMethod(ref num1);6 7 outMethod(out n... 阅读全文
posted @ 2015-09-24 20:43 青春岁月,无怨无悔 阅读(183) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <style type="text/cs 阅读全文
posted @ 2013-02-27 15:26 青春岁月,无怨无悔 阅读(533) 评论(0) 推荐(0) 编辑
摘要: 查看表空间创建时间select a.file_name,a.tablespace_name,to_char(b.creation_time,'yyyy-mm-dd')creation_time from dba_data_files a,v$datafile b where a.file_id=b.file# order by tablespace_name;查看表空间信息SELECT * FROM dba_tablespaces; 阅读全文
posted @ 2012-12-19 17:02 青春岁月,无怨无悔 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 最近做项目的时候在查找一些不安装Oracle客户端的解决方案,现在可以安装绿色版Oracle客户端来连接服务器。这样就可以不再在每个客户端安装Oracle客户端应用程序。具体方法如下:1).下载Oracle绿色版本客户端目前有: instantclient-basic-nt-11.2.0.3.0 i... 阅读全文
posted @ 2012-12-15 16:06 青春岁月,无怨无悔 阅读(1992) 评论(0) 推荐(0) 编辑
摘要: -- Create tablecreate table CLIENTDICTIONARYCMD( 序号 NUMBER not null, 本次运行唯一标识 VARCHAR2(100) not null, 科力自动生成命令编号 NUMBER not null, 客户端传来命令编号 NUMBER not null, 客户端唯一标识 VARCHAR2(100) not null, 下发时间 DATE not null)--创建序列create sequence SEQ_CLIENTDICTIONARYCMDminvalue 1nomaxvalues... 阅读全文
posted @ 2012-12-14 15:01 青春岁月,无怨无悔 阅读(296) 评论(0) 推荐(0) 编辑
摘要: private void btnSelectFile_Click(object sender, EventArgs e) { //打开文件对话框。 OpenFileDialog openFile = new OpenFileDialog(); //后缀名。 openFile.Filter = "Excel文件(*.xls,*.xlsx)|*.xls;*.xlsx"; if (openFile.ShowDialog() == DialogResult.OK) ... 阅读全文
posted @ 2012-12-06 21:53 青春岁月,无怨无悔 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 当向mysql插入中文时,会出现类似错误Error:1366(HY000):Incorrect string value: '\XD6\XD0...' for column问题原因:Db characterse的字符设置成了latin1解决方案:修改mysql安装目录下的my.ini文件为default-character-set=utf8character-set -server=utf8然后重启mysql服务,重新创建一个数据库命令:show variables like 'character_set_%' 查看MySql字符集set names utf8 阅读全文
posted @ 2012-10-29 15:27 青春岁月,无怨无悔 阅读(415) 评论(0) 推荐(0) 编辑
摘要: private void btnSelectFile_Click(object sender, EventArgs e) { dictionary.Clear(); dtAll.Clear(); //打开文件对话框。 OpenFileDialog openFile = new OpenFileDialog(); openFile.Multiselect = true; //后缀名。 openFile.Filter = "Exc... 阅读全文
posted @ 2012-09-06 16:31 青春岁月,无怨无悔 阅读(359) 评论(0) 推荐(0) 编辑
摘要: publicstaticvoidExportToExcel(DataSetdataSet,stringfileName){try{stringsaveFileName=string.Empty;SaveFileDialogsaveDialog=newSaveFileDialog();saveDialog.DefaultExt="xls";saveDialog.Filter="Excel文件|*.xls";saveDialog.FileName=fileName;saveDialog.ShowDialog();saveFileName=saveDialog 阅读全文
posted @ 2012-09-05 14:17 青春岁月,无怨无悔 阅读(365) 评论(0) 推荐(1) 编辑
摘要: 创建表oracle二进制要用Blob类型createtableDOWNLOADIMAGE(IMAGE_IDVARCHAR2(50)notnull,IMAGE_TIMEDATE,IMAGE_DATABLOB)oracle、Ado.net访问通用类/Files/sunyj/DbHelperOra.txtpublicintInsertImage(stringuid,DateTimedt,byte[]by){//写进数据库StringBuilderstrSql=newStringBuilder();strSql.Append("insertintodownloadimage("); 阅读全文
posted @ 2012-07-28 19:15 青春岁月,无怨无悔 阅读(210) 评论(0) 推荐(0) 编辑