博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年11月3日

摘要: 在做项目的时候,我们经常会涉及到数据库的迁移所以我们需要导出 db2数据的建库脚本,存储过程脚本,函数脚本,我是这么做的windows键---cmd---进入命令-----db2cmd----进入db2命令行------F:(备注:找到要导出的盘符)-------- cd db2file (备注:文件夹,需要提前建好)然后执行下面的命令db2look -d tracing(数据库名字) -e -z tracing(数据库模式名)-td$(备注:$是分隔符,这个在aix db2 导入的时候需要用,最好加上) -o db2look2.sql (备注:导出的文件名)db2look 导出数据脚本把包括 阅读全文

posted @ 2013-11-03 10:29 生命如风 阅读(1014) 评论(0) 推荐(0) 编辑

2013年10月29日

摘要: Array.prototype.Contain = function (item) { var arr = this; if (arr == null || arr.length == 0) { return false; } for (var i = 0; i < arr.length; i++) { if (arr[i] == item) { return true; ... 阅读全文

posted @ 2013-10-29 17:43 生命如风 阅读(169) 评论(0) 推荐(0) 编辑

2013年9月13日

摘要: 编辑器加载中... 1、 window.location.replace(window.location.href) 阅读全文

posted @ 2013-09-13 11:09 生命如风 阅读(126) 评论(0) 推荐(0) 编辑

2013年9月6日

摘要: /* 字典 ActiveXObject("Scripting.Dictionary") 项目中用到的ActiveXObject("Scripting.Dictionary") 但是要兼容谷歌 ,所以就自己写了一个字典*/var Dictionary = function () { var arr; var length = arr ? arr.length : 0;};Dictionary.prototype.add = function (Key, Item) { if (this.arr == null || this.arr.length == 0 阅读全文

posted @ 2013-09-06 19:17 生命如风 阅读(911) 评论(0) 推荐(0) 编辑

2013年9月2日

摘要: string hanzi = "汉字";byte[] arr = System.Text.Encoding.UTF8.GetBytes(hanzi);string temp = System.Text.Encoding.UTF8.GetString(arr); 阅读全文

posted @ 2013-09-02 19:25 生命如风 阅读(214) 评论(0) 推荐(0) 编辑

2013年8月19日

摘要: 1 function InputLimits(id) { 2 $.each(id, function() { 3 $("#" + this).bind("keyup", "", function(e) { 4 $(this).val($(this).val().replaceNaN()); 5 }).bind("blur", "", function() { 6 $(this).val($(this).val().repla... 阅读全文

posted @ 2013-08-19 17:26 生命如风 阅读(196) 评论(0) 推荐(0) 编辑

2013年8月14日

摘要: 网上找了好久才找到,在这记录下。 1 阅读全文

posted @ 2013-08-14 17:23 生命如风 阅读(348) 评论(0) 推荐(0) 编辑

摘要: 在后台中这样注册js方法ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "", "", false); 阅读全文

posted @ 2013-08-14 17:05 生命如风 阅读(474) 评论(0) 推荐(0) 编辑

2013年8月11日

摘要: js时间日期比较 1 阅读全文

posted @ 2013-08-11 23:28 生命如风 阅读(268) 评论(0) 推荐(0) 编辑

2013年8月8日

摘要: 1 CREATE PROCEDURE Sys_Init_tblaccountsuser_sortid () 2 3 4 P1: BEGIN 5 declare not_found condition for sqlstate '02000'; 6 DECLARE V_RK_ID INTEGER DEFAULT 0; 7 DECLARE V_ID INTEGER DEFAULT 0; 8 DECLARE V_AT_END INT DEFAULT 0; 9 10 DECLARE CUR1 CURSOR WITH RETURN TO CLIENT F... 阅读全文

posted @ 2013-08-08 18:24 生命如风 阅读(981) 评论(0) 推荐(0) 编辑