繁星世界

 

01 2012 档案

oracle两表关联更新
摘要:Oracle语法: UPDATE TableName SET (column1[,column2...])= (SELECT column1,[,column2...] FROMTableName1 [WHERE where_definition])Oracel 示例:update t_fare_info t set (t.currency_code, t.fare_type, t.allow_alone_sale, t.allow_combine_sale) = (select f.currency_code, f.fare_type, f.allow_alone_sale, f.allow 阅读全文

posted @ 2012-01-30 15:04 繁星世界 阅读(2441) 评论(0) 推荐(0)

System.Exception: System.Data.OracleClient 需要 Oracle 客户端软件 8.1.7 或更高版本
摘要:解决方案:方案一、在环境变量的系统变量中修改path,添加oracle目录如:C:\oracle\product\10.2.0\client_1\bin;方案二、启动Window 资源浏览器找到ORACLE_HOME目录,如C:\oracle\product\10.2.0\client_1右键弹出菜单,选择该目录共享与安全点击 “安全” 页签在组和用户名称列表中点击“Authenticated Users” 项.在该用户的权限列表中,将“读取和运行”的选择框置为不选中状态再次点击“读取和运行”的选择框,将其设置为选中状态点击“高级”按钮并在权限项目中确定“Authenticated Users 阅读全文

posted @ 2012-01-29 14:00 繁星世界 阅读(2845) 评论(0) 推荐(1)

SVN提交报错:服务器发送了意外的返回值(400 Bad Request)
摘要:原因是机器装了卡巴斯基导致。解决方案:一、停掉卡巴斯基再提交;二、在“设置”->"服务"->"网络设置"->"端口设置中取消对80端口的监控;三、在“设置”->保护->信任区域->添加->浏览,浏览TortoiseSvn 安装目录下TortoiseSvn\bin\TortoiseProc.exe文件即可。 阅读全文

posted @ 2012-01-29 13:45 繁星世界 阅读(3717) 评论(0) 推荐(0)

oracle修改外键列值的方案
摘要:先使外键失效,修改完数据后再有效失效语句:alter table table_name disable constraint constraint_name;update数据;有效语句:alter table table_name enable constraint constraint_name; 阅读全文

posted @ 2012-01-11 12:13 繁星世界 阅读(841) 评论(0) 推荐(0)

DataGridView绑定List集合删除焦点行未变的解决方案
摘要:dgvMain.DataSource = new BindingList<集合对象>(绑定集合); 阅读全文

posted @ 2012-01-10 17:05 繁星世界 阅读(386) 评论(0) 推荐(0)

Oracle存储过程中游标For循环使用
摘要:procedure copy(a_id int) is cursor t_cursor is select * from table f where f.id = a_id; v_row table%rowtype;begin for v_row in t_cursor loop -- 处理数据 end loop;end copy; 阅读全文

posted @ 2012-01-05 16:45 繁星世界 阅读(9088) 评论(0) 推荐(0)

4位时间格式正则表达式[从0000~2359]
摘要:using System.Text.RegularExpressions;Regex.IsMatch(strStartTime, "^([0-1]+[0-9]|2[0-3])([0-5][0-9])$"); 阅读全文

posted @ 2012-01-05 16:39 繁星世界 阅读(628) 评论(0) 推荐(0)

导航

小花生网