發表文章

目前顯示的是 10月, 2016的文章

Latest

英文、中文 / 諺語、片語、成語、口語對照 (2025.08.25 更新)

做表面功夫 go through the motion 目中無人;自視甚高 have one's nose in the air 有完沒完;別再說了 give it a rest  = can in 兵來將擋,水來土掩 roll with the punches (衍伸至拳擊) = take it as it comes 時間過得好慢。 The day is dragging on. 少臭美了 be full of oneself = Get over yourself! 你真是自以為是。 You are really all about yourself. 你一定找得到的。 You can't miss it. 那還用說。 You're telling me. 物超所值 get more bang for the buck 加把勁 pull one's socks up 出洋相;大吵大鬧 make a scene 風馬牛不相及 be neither here nor there 挖東牆補西牆 rob Peter to pay Paul 我覺得事有蹊蹺。 I smell a rat.  冤冤相報何時了。 Two wrongs don't make a right. 沒魚,蝦也好。 It's not so great, but it'll have to do.  自斷後路 burn one's bridge  這是掛保證的。 You can take it to the bank.  = You can quote me on that. 白手起家 rags-to-riches 放規矩點! Behave youself. = Mind your p's and q's. 悉聽尊便。 Anything you say. = It's up to you. = As you wish. 夠了!(住嘴) Cut it out! = Stop it! 閉嘴! Hold your tongue. = Shut up! 別太挑剔了! Don't be so fussy. 別搞砸了! Don't blow it. 別老叫我做東做西! Don't boss me arou...

C#讀取Excel

上司指派的任務要我轉JSON, 於是我就自己寫程式把Excel轉JSON~ 一開始用的是DataReader方法 中間有碰到一個問題 在某一行中如果有字串又有數值的格式,它只會抓一開始判斷的格式 後來才知道需要設定IMEX=1 而之後想要把程式再精進 於是用了DataAdapter這方法 所以...我總共寫了兩種方法來讀取Excel 參考 檔案讀寫相關 DataReader相關 遺漏值 PRB: Excel Values Returned as NULL Using DAO OpenRecordset DataAdapter相關

Excel之日期的通用格式

在Excel的通用格式來顯示日期時~ 貌似是用1900年1月1日以日子來加的~ 像2002年1月1日就會變成37527 (今天在做C#程式抓Excel日期進來時就變成通用格式@@) 參考 How Excel stores dates and times

實習生的SQL學習之旅

最近到了一家公司當實習生~ 而我主要是使用SQL來處理資料~ 之前在學校都只能學到皮毛~ 到公司後~我又多學習了一些SQL的語法~ 像是搭配like使用的 % :代表零個、一個、或數個字母。 _:代表剛好一個字母。 這在處理縣市的相關資料時,很實用~ select * from A1 where 縣市 like '_北市' 這樣就可以找到"台北市"或"新北市"的~ (讓我想到有些欄位上寫的還是"臺北縣"...除了寫法不同又是升格前的名子@@) 另外~ 我也學到了join~ update A1 set A1.城市代碼 = A2.城市ID from A1 join A2 on A1.鄉鎮 = A2.區名 當然了~ SQL Server也是第一次上手~ (之前都是用MySQL) 參考 http://www.1keydata.com/tw/sql/sql-wildcard.html