using System;namespace CSDesingPattern{ class Singleton { private static Singleton mInstance; private int x = 0; private Singleton(){} public static Singleton GetObject() { if (mInstance == null) mInstance = new Singleton(); return
由於寫一個代碼自動產生工具,需要找一些讀系統資料字典的資訊,以前有個寫一個很不錯的,SELECT 表名=case when a.colorder=1 then d.name else '' end, 欄位序號=a.colorder, 欄位名=a.name, 標識=case when COLUMNPROPERTY( a.id,a.name,'IsIdentity')=1 then '√'else '' end, 主鍵=case when exists(SELECT 1 FROM sysobjec
Configure PerforceDownload the Perforce daemon file 'p4d' and client 'p4' files directly into /usr/local/bin. These files are for Linux installs using the 2.6 kernel version.cd /usr/local/binwget
敏捷不是過程經常聽到有人說我們採用敏捷開發過程,我自己原來也這麼說,但經過做幾年的項目,我突然意識到敏捷不是過程。好像敏捷的那些之“父”也沒有說過敏捷是一種過程。我們拿它來和瀑布模型,V模型來比較是沒有意義的。看過敏捷宣言的人,都知道他只提到了四大主題思想和十二項原則Individuals and interactions over processes and tools Working software over comprehensive documentation
以後我們做多條件查詢,一種是排列結合,另一種是動態拼接SQL如:我們要有兩個條件,一個日期@addDate,一個是@name第一種寫法是if (@addDate is not null) and (@name <> '')select * from table where addDate = @addDate and name = @nameelse if (@addDate is not null) and (@name ='')select * from table where
Download source - 8 Kb IntroductionOne of the most popular extensions to the Apache webserver has been mod_rewrite - a filter which rewrites URLs. For example, instead of a URL such as http://www.apache.org/BookDetails.pl?id=5you could provide a