發表文章

目前顯示的是 3月, 2017的文章

Latest

SQL 之尋找 NULL

找有 NULL 欄位的值可用 select [欄位名] from [資料表] where [欄位名] is null 參考 如何查詢 SQL Server 資料庫中欄位值為 NULL 的資料

SQL 備份語法

select * into [Base16].[dbo].[New] from [Base16].[dbo].[Old] 這是我常用的備份語法~ 最近在公司在匯入資料時又因為日期格式錯誤而匯不進去啦ˋ 口ˊ

Template 之標籤取代

using System; using System.Reflection; namespace ConsoleApplication1 {     class Program     {         static void Main(string[] args)         {             string str = "Hello! This is {Student.Name}. My ID is {Student.ID}.";             //string str2 = "你好!我是{Student.Name},我的ID為{Student.ID}。";             int size = 0;             Student std = new Student();             std.Name = "Tim";             std.ID = "44123";             string[] temp = str.Split(' ');//以空白做分界來切割             //算出有幾個標籤             foreach (string a in temp)             {                 //Console.Write(a + "\n"); ...