2012年6月7日 星期四

copy name in用法

[轉]http://oracledev.5d6d.com/archiver/tid-599.html


for i in 1 ..40 loop

  copy(i,'block.item'||i);

end loop;



--将循环变量循环赋值给block.item1,block.item2....

拆字串迴圈 關鍵字:substr/instr/逗號


i := 1;
loop
  exit when instr(v_tbnm,',',1,i) = 0;

  if i= 1 then
  t_1 := substr(v_tbnm, 0, instr(v_tbnm, ',', 1, i)-1);
  else
     t_1 := substr(v_tbnm, instr(v_tbnm, ',', 1, i-1)+1, instr(v_tbnm, ',', 1, i)
            - instr(v_tbnm, ',', 1, i-1)-1);
  end if;
  i := i+1;
end loop;

2012年5月10日 星期四

[轉]oracle系統表查詢

http://big5.webasp.net/article/21/20760.htm


數據字典dict總是屬於Oracle用戶sys的。 
  1、用戶: 
   select username from dba_users; 
  改口令 
   alter user spgroup identified by spgtest; 

2012年4月23日 星期一

[轉]幾種WinForm的Form與Form之間的傳值方法


寫WinForm的程式,使用Form與Form之間的傳值方式並不少見,但從WebForm跳來寫WinForm的,可能就會搞不清楚WinForm的做法,所以這個問題也被常常拿出來,所以這邊大概列了幾種做法供參考.

2012年4月19日 星期四

[轉]copy from指令

SQL*Plus的Copy命令

 在数据表间复制数据是Oracle DBA经常面对的任务之一,Oracle为这一任务提供了多种解决方案,SQL*Plus Copy 命令便是其中之一。SQL*Plus Copy 命令通过SQL*Net在不同的表(同一服务器或是不同服务器)之间复制数据或移动数据。
 在实际运行环境中若能恰当地选择使用SQL*Plus Copy 命令可以有效地提高数据复制的性能。
 下面将简要介绍SQL*Plus Copy 命令使用,并在性能方面与其他两种方案进行对比,力求能提供一个使用Copy 命令的方案参考。

2012年3月25日 星期日

Cisco VPN Client Reason 442

為了讓我的ipad2可以連到網路...藉用了Connectify這小軟體讓筆電成為無線AP,結果...CISCO VPN無法使用了...把Connectify移除掉還是無法,後來在網路找到這篇文章:

http://heylinux.com/archives/1396.html 

解决Cisco VPN Client Reason 442: Failed to Enable Virtual Adapter


我发现最近在家里通过Cisco VPN Client 连接到VPN服务器的时候,客户端经常报错。
Reason 442: Failed to Enable Virtual Adapter
折腾很久,国内的国外的网站搜遍了也未能找到原因,终于最后自己偶然发现了解决这个问题的办法,那就是 “开始” – “运行” – “services.msc” – 停止 “Internet Connection Sharing (ICS)”,话说这类问题虽没什么技术含量,但遇到的时候真的很让人郁闷。

2012年3月23日 星期五

[轉]TextBox 如何輸入轉大寫、小寫

http://a-jau.blogspot.com/2010/08/c-textbox-code.html

[C#] TextBox 如何輸入轉大寫、小寫,限制輸入相關code(二)

C# Winform通常在TextBox會依照個人需求,而需要限制使用者輸入數字,英文(大小寫),這裡談的是如何使輸入自動轉大小寫,或者限制輸入大寫。



輸入自動轉大小寫有2個方法


1.手動去更改code,使用事件TextChanged  輸入如下程式碼:

private   void   textBox1_TextChanged(object   sender,   System.EventArgs   e)   
  {   
    
  this.textBox1.Text=this.textBox1.Text.ToUpper();   //轉大寫

  /* this.textBox1.Text=this.textBox1.Text.ToLower();   //轉小寫 */
  this.textBox1.SelectionStart=this.textBox1.Text.Length;   
    
  }


2.使用屬性
可以把TextBox的CharacterCasing属性改為Upper即可實現自動轉大寫。
Lower改小寫,Normal是預設直。