摘要: 1 delete from TAB_JXGD_BPBJ a2 where not EXISTS (select jxdid from tab_jxgd b where a.jxgdid=b.jxdid) 阅读全文
posted @ 2012-11-13 15:31 Seaurl 阅读(763) 评论(0) 推荐(0) 编辑
摘要: 可以加两个日期之间任何一个时间单位。private string DateDiff(DateTime DateTime1, DateTime DateTime2) {string dateDiff = null; TimeSpan ts = DateTime1.Subtract(DateTime2).Duration(); dateDiff = ts.Days.ToString()+"天"+ ts.Hours.ToString()+"小时"+ ts.Minutes.ToString()+"分钟"+ ts.Seconds.ToStrin 阅读全文
posted @ 2012-11-13 10:51 Seaurl 阅读(249) 评论(0) 推荐(0) 编辑