摘要: MySQL常用操作基本操作,以下都是MySQL5.0下测试通过首先说明下,记住在每个命令结束时加上;(分号)1.导出整个数据库mysqldump -u用户名-p --default-character-set=latin1数据库名>导出的文件名(数据库默认编码是latin1)mysqldump -u wcnc -p smgp_apps_wcnc > wcnc.sql2.导出一个表mysqldump -u用户名-p数据库名 表名>导出的文件名mysqldump -u wcnc -p smgp_apps_wcnc users> wcnc_users.sql3.导出一个数据库 阅读全文
posted @ 2012-05-29 21:10 刘振明 阅读(293) 评论(0) 推荐(0) 编辑
摘要: static bool IsNumeric(string str){ if (str == null || str.Length == 0) return false; foreach (char c in str) { if (!Char.IsNumber(c)) { return false; } } return true; } 阅读全文
posted @ 2012-05-29 20:59 刘振明 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1.log 日志2.Repo-browser 代码库浏览器3.modifications 修改4.Revision graph 版本历史图5.Resolved 解决6.revert 还原7.get lock 获得锁8. Release lock 释放锁9.branch/tag 支/标签10.switch 切换11. merge 合并12.Relocate 搬迁13. createpatch创建补丁14.apply patch应用补丁15. properties 属性16.paste 粘贴17.diff with previous version 与之前的版本比较18.blame 责备19.ig 阅读全文
posted @ 2012-05-29 20:13 刘振明 阅读(2483) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 将参数扩展为指定长度的字符串,不足位数的在前方加0 /// </summary> /// <param name="origin"></param> /// <param name="length"></param> /// <returns></returns> public static string GetLengthString(string origin, int length) { int l = origin. 阅读全文
posted @ 2012-05-29 20:09 刘振明 阅读(355) 评论(0) 推荐(0) 编辑
摘要: class ServerUtils { private static ServerUtils _instance = new ServerUtils(); public static ServerUtils getInstance() { return _instance; } XmlDocument doc = new XmlDocument(); private string serverIp; private string typecode; public string getServerIp() { doc.Load("XMLFile1.xml"); XmlNode 阅读全文
posted @ 2012-05-29 20:07 刘振明 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 首先将读取的数据库字段用Convert.ToDateTime("字符串"); 转换成DateTime对象,然后用格式化函数对时间进行格式化。如下:DateTime dt=Convert.ToDateTime("str"); 括号中带不带引号我忘了你自己试一下就ok了时间格式化输出:Label1.Text = dt.ToString();//2005-11-5 13:21:25 Label2.Text = dt.ToFileTime().ToString();//127756416859912816 Label3.Text = dt.ToFileTimeU 阅读全文
posted @ 2012-05-29 20:05 刘振明 阅读(252) 评论(0) 推荐(0) 编辑