10 2016 档案

c# PadLeft,PadRight用法
摘要:补位 string str = "100"; str.PadLeft(5,'0') 输出:00100 str.PadRight(5, '0') 输出:10000 阅读全文

posted @ 2016-10-11 16:26 淡泊以修身,宁静以养性

表数据合并操作
摘要:1.查询需要被合并的数据 1.1.查询需要被合并的数据写入txt(备份) 1.2.判断需要更新的数据写入txt(备份) 1.3.判断需要新增的数据写入txt(备份) 2.处理被合并的数据 3.读取更新txt,新增txt合并数据,出错回滚 阅读全文

posted @ 2016-10-11 15:10 淡泊以修身,宁静以养性

mysql left用法
摘要:LEFT(str,len) 返回字符串str的最左面len个字符。 SELECT LEFT('123456789',5) 阅读全文

posted @ 2016-10-11 14:40 淡泊以修身,宁静以养性

mRemote配置
摘要:配置完mRemote后 备份C:\Users\Administrator\AppData\Local\Felix_Deimel\mRemote\confCons.xml文件 覆盖到其他电脑可以直接使用 阅读全文

posted @ 2016-10-11 11:37 淡泊以修身,宁静以养性

日期转时间戳,时间戳转日期
摘要:日期转时间戳 public Int64 ToUnixTimestamp(DateTime date) { DateTime unixEpoch = new DateTime(1970, 1, 1, 0, 0, 0); TimeSpan unixTimeSpan = date - unixEpoch; 阅读全文

posted @ 2016-10-10 18:04 淡泊以修身,宁静以养性

时间戳
摘要:时间戳是指格林威治时间1970年01月01日00时00分00秒(北京时间1970年01月01日08时00分00秒)起至现在的总秒数。mysql时间戳转日期判断根据需要是否需要减28800select FROM_UNIXTIME(created_time, '%Y-%m-%d %H:%i:%S') 阅读全文

posted @ 2016-10-10 11:06 淡泊以修身,宁静以养性

mysql case when then else end 用法
摘要:select case when 判断条件 then 输出结果 else 输出结果 end from table 阅读全文

posted @ 2016-10-09 18:13 淡泊以修身,宁静以养性

导航