C:\> echo %DATE%
星期一 2009/12/28
C:\> echo %DATE:~4,10%
2009/12/28
Note: 日期變數位移4,取10個字, 中文字也算一個位移!
C:\>echo %DATE:~4,4% 年 %DATE:~9,2% 月 %DATE:~12,2% 日
2009 年 12 月 28 日
C:\>echo %time%
14:00:53.59
C:\>echo %time:~0,2%%time:~3,2%%time:~6,2%
140358
2009年12月28日 星期一
2009年11月9日 星期一
2009年10月21日 星期三
DNS 遞迴查詢
DNS 的查詢方式分兩種:
1. Recursive Query: (適用於 DNS Client 對 DNS Server)
DNS client 端只丟出一個詢問給 local DNS server,
然後 local DNS 就會不斷地查到答案出來為止.
2. Iterative Query: (適用於 DNS Server 對 DNS Server)
Local DNS 對其它 DNS 發出的詢問, 都只是知道一個更進一步的線索,
然後發問者(local DNS)根據線索再去進一步找答案.
MISC:
*. 區網內使用的DNS服務 (屬 DNS Client 對 DNS Server),一般是 Recursive Query.
*. 供外部對自家域名解析用的DNS服務 (屬 DNS Server 對 DNS Server),
一般是 Iterative Query, 所以應可以停用遞迴與轉送.
*. Root name server 因負載考量只接受 Iterative Query.
1. Recursive Query: (適用於 DNS Client 對 DNS Server)
DNS client 端只丟出一個詢問給 local DNS server,
然後 local DNS 就會不斷地查到答案出來為止.
2. Iterative Query: (適用於 DNS Server 對 DNS Server)
Local DNS 對其它 DNS 發出的詢問, 都只是知道一個更進一步的線索,
然後發問者(local DNS)根據線索再去進一步找答案.
MISC:
*. 區網內使用的DNS服務 (屬 DNS Client 對 DNS Server),一般是 Recursive Query.
*. 供外部對自家域名解析用的DNS服務 (屬 DNS Server 對 DNS Server),
一般是 Iterative Query, 所以應可以停用遞迴與轉送.
*. Root name server 因負載考量只接受 Iterative Query.
2009年9月24日 星期四
免費的 DNS 代管服務
免費的 DNS 代管服務
http://www.everydns.net
http://www.dnspark.com/services/freeServices.php
http://domain.club.tw/showthread.php?t=2142
http://mydomain.com/
http://everydns.net/
http://zoneedit.com/
http://powerdns.com/
http://www.xname.org/
http://www.technopagan.org/dynamic/
PS:
1.網域名稱申請和DNS指定 http://nweb.hinet.net/
2.DNS反解和次領域申請 http://hidomain.hinet.net/hidns.html
http://www.everydns.net
http://www.dnspark.com/services/freeServices.php
http://domain.club.tw/showthread.php?t=2142
http://mydomain.com/
http://everydns.net/
http://zoneedit.com/
http://powerdns.com/
http://www.xname.org/
http://www.technopagan.org/dynamic/
PS:
1.網域名稱申請和DNS指定 http://nweb.hinet.net/
2.DNS反解和次領域申請 http://hidomain.hinet.net/hidns.html
2009年9月11日 星期五
挑選同列最大與最小
ORACLE SQL 挑選同列最大與最小
SQL> select * from t2;
A B C D
-------------------- -------------------- -------------------- ------
1111 1 1 1
2222 1 1 2
3333 2 1 1
4444 2 2 1
5555 2 2 2
SQL> select greatest(a,b,c,d), least(a,b,c,d) from t2;
GREATEST(A,B,C,D) LEAST(A,B,C,D)
-------------------- --------------------
1111 1
2222 1
3333 1
4444 1
5555 2
2009年9月3日 星期四
ORACLE PIVOT 樞紐表
網路文章,聽說11g 已支援PIVOT樞紐表的應用了!
Oracle pivot SQL Tips
http://www.praetoriate.com/t_pivot_sql.htm
Oracle Pivot examples
http://www.dba-oracle.com/t_pivot_examples.htm
Oracle pivot SQL Tips
http://www.praetoriate.com/t_pivot_sql.htm
Oracle Pivot examples
http://www.dba-oracle.com/t_pivot_examples.htm
訂閱:
文章 (Atom)