摘要:
原文:http://www.cnblogs.com/tangruixin/archive/2012/04/23/2465917.html1:如果参数是int类型:declare @a xmlset @a='15432'select * from product where id in (select... 阅读全文
摘要:
select *from (select top n * from students) aawhere not exists(select * from (select top n-1 * from students) bb where aa.id=bb.id) 阅读全文
摘要:
获取当月数据MONTH(时间字段)=MONTH(GETDATE()) andyear(时间字段)=year(GETDATE())计算两个时间差了多少分钟DATEDIFF(mi,'7:00',convert(nvarchar(5),CreatedTime,108)) 或者 datediff(Mont... 阅读全文
摘要:
DECLARE @T1 table(UserID int , UserName nvarchar(50),CityName nvarchar(50));insert into @T1 (UserID,UserName,CityName) values (1,'a','上海')insert into ... 阅读全文
摘要:
if not object_id('Tempdb..#T') is null drop table #TGoCreate table #T([ID] int,[Name] nvarchar(1),[Memo] nvarchar(2))Insert #Tselect 1,N'A',N'A1' u... 阅读全文
摘要:
mongodb下载地址(32位):下载地址 自己选择版本建立如下与mongodb并行的两个文件夹data和log。然后建立mongo.config。在mongo.config配置文件中输入:##数据文件dbpath=F:\data##日志文件logpath=F:\log\mongo.log并且在lo... 阅读全文
摘要:
1 public bool InsertAll(IList list) 2 { 3 DataTable dt = new DataTable(); 4 dt.Columns.Add("StockNo",typeof(string));... 阅读全文
摘要:
之前一人负责微信的项目,那时2014年LZ还没毕业..啥都不懂,为此特别感谢@SZW,没有你的框架,我可能都无从下手当时做项目最麻烦的就是调试,因为很多页面都要使用网页授权获取用户信息在电脑上打不开获取了openid的页面,只好拿一台服务器,边改边发步,痛苦....2015年,这个问题终于解决了,多... 阅读全文
摘要:
$(function() {var mao = $("#" + getParam("m")); //获得锚点if (mao.length > 0) {//判断对象是否存在var pos = mao.offset().top;var poshigh = mao.height();$("html,bod... 阅读全文
摘要:
//创建时绑定 protected void ItemCreated(object sender, RepeaterItemEventArgs e) { if (e.Item.DataItem != null) { ... 阅读全文