2011年12月12日
摘要: 1.字段是否存在if((select count(*) from syscolumns where name = '字段名' and id=(select id from sysobjects where name='表名'))=0)beginend2.表是否存在if exists (select * from sysobjects where id = OBJECT_ID('表名') and OBJECTPROPERTY(id, 'IsUserTable') = 1) DROP TABLE 表名 阅读全文
posted @ 2011-12-12 09:57 张扬个性,敢为天下先 阅读(777) 评论(0) 推荐(0) 编辑
  2011年12月8日
摘要: {"AreaMax":{ "schema":[ {"name":"AREA","type":"string"}, {"name":"ADCD","type":"string"}, {"name":"VAL","type":"decimal"}, {"name":"STNM",&q 阅读全文
posted @ 2011-12-08 16:48 张扬个性,敢为天下先 阅读(1459) 评论(0) 推荐(0) 编辑
  2011年12月7日
摘要: 1.后台CS代码有修改必须替换,编译后生成dll文件覆盖原来的DLL2.前台页面修改,所修改的问题也需要替换; 阅读全文
posted @ 2011-12-07 15:26 张扬个性,敢为天下先 阅读(333) 评论(2) 推荐(0) 编辑
摘要: 软件:SqlDataToScript生成需要插入的表的数据 阅读全文
posted @ 2011-12-07 10:15 张扬个性,敢为天下先 阅读(418) 评论(0) 推荐(0) 编辑
  2011年12月1日
摘要: Regex rx = new Regex(@"(\d+).\x20target...blank.\x20{1,5}style=.LINE-HEIGHT:150%.>", RegexOptions.Compiled | RegexOptions.IgnoreCase); MatchCollection _oMatchColl = rx.Matches(weatherhtml); string str = string.Empty; foreach (Match match in _oMatchColl) { GroupCollection groups = match. 阅读全文
posted @ 2011-12-01 09:50 张扬个性,敢为天下先 阅读(400) 评论(0) 推荐(0) 编辑
摘要: string weatherhtml = string.Empty; HttpWebRequest webrt = (HttpWebRequest)WebRequest.Create("http://www.fjqx.gov.cn"); HttpWebResponse webrs = (HttpWebResponse)webrt.GetResponse(); //读取数据 Stream stream = webrs.GetResponseStream(); StreamReader srm = new StreamReader(stream, System.Text.Enc 阅读全文
posted @ 2011-12-01 08:52 张扬个性,敢为天下先 阅读(547) 评论(0) 推荐(0) 编辑
  2011年11月17日
摘要: select cast(12.347343 as decimal(18,2))12.35 阅读全文
posted @ 2011-11-17 15:52 张扬个性,敢为天下先 阅读(4147) 评论(5) 推荐(0) 编辑
  2011年11月11日
摘要: &#10<div title="123& #10;456">text</div> 阅读全文
posted @ 2011-11-11 16:05 张扬个性,敢为天下先 阅读(2730) 评论(1) 推荐(0) 编辑
摘要: 1.五秒刷新<Meta http-equiv="Refresh" Content="5;">2. 跳转到<Meta http-equiv="Refresh" Content="5; Url=http://www.baidu.com"> 阅读全文
posted @ 2011-11-11 11:49 张扬个性,敢为天下先 阅读(292) 评论(4) 推荐(1) 编辑
摘要: isnull在数据库查询中的应用,特别是再语句连接的时候需要用到比如连接时候,某个字段没有值但是又要左连接到其他表上 就会显示空,isnull可以判断是否是NULL,如果是给个默认值isnull("字段名","默认的数据") 阅读全文
posted @ 2011-11-11 10:07 张扬个性,敢为天下先 阅读(480) 评论(0) 推荐(1) 编辑