09 2010 档案

摘要:using System;class Test{ static void Main() { Console.WriteLine(GetSynStartTime("20100916112049").ToString("yyyy年MM月dd日 mm:ss")); } public static DateTime GetSynStartTime(string synStartTime) { return DateTime.ParseExact(synStartTime, "yyyyMMddHHmmss", new System.Global 阅读全文
posted @ 2010-09-16 11:38 清山博客 阅读(362) 评论(0) 推荐(0) 编辑
摘要:C# 文件操作(文件夹 及 文件)System.IO 类目录操作string[] drives = Directory.GetLogicalDrives(); //本地驱动器的名,如:C:/等string path = Directory.GetCurrentDirectory(); //获取应用程序的当前工作目录Path.GetFileName(@"c:/dir/file.txt"); //获取子目录的名字,result的结果是file.txtDirectory.GetFiles(路径及文件名) //获取指定目录中的文件名(文件列表)DirectoryInfo di = 阅读全文
posted @ 2010-09-09 18:03 清山博客 阅读(239) 评论(0) 推荐(0) 编辑
摘要:select count(id) from student where ISNULL(pwd,'')=''这样 无论pwd=''或者pwd为null都可以查到 查询非空字段,只需:ISNULL(pwd,'')!='' 阅读全文
posted @ 2010-09-06 17:21 清山博客 阅读(920) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示