格古洛

记下遇到的一些问题,或许以后还用得着

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: :: 管理 ::

2013年8月14日

摘要: SQLServer中的update……from语句用于更新替换表中的某些行,例如update NewTable set Name = B.Namefrom NewTable A,NewTable_Copy Bwhere A.ID = B.ID而在mysql中需要改成如下写法update NewTable,NewTable_Copyset NewTable.`Name` = NewTable_Copy.`Name`where NewTable.`ID` = NewTable_Copy.`ID` 阅读全文
posted @ 2013-08-14 11:35 格古洛 阅读(961) 评论(0) 推荐(1) 编辑

摘要: using System;using System.Net;namespace Server.Core{ /// /// IP地址与长整型数字的互换算法 /// public static class IPExtention { /// /// IP地址转换成长整型数字 /// /// 数据源 /// 长整型数字 public static string GetIPValue(this string src) { int x = 3; long result = 0; IPAddress ip = null; if (!IPAddress.TryParse(src, out ip)) ... 阅读全文
posted @ 2013-08-14 10:55 格古洛 阅读(640) 评论(0) 推荐(0) 编辑