摘要:最近一直在和表结构打交道,头都大了,最让人头痛的就一个字段表备注(value),同样一个字段用相同的查询语句查询出来放到不同的地方,竟然出现显示和不显示的问题,而且找到这个字段也十分费神。 以前这个字段是放在sysproperties里面,在2005下竟然找不到这个表了,千回百转之下,终于发现,原来是转到sys.extended_properties这个表中了,无比忧郁。 另外这个value貌似还...
阅读全文
摘要:<asp:repeater id="Repeater1" runat="server" onitemdatabound="Repeater1_ItemDataBound"> <itemtemplate> <div> <asp:dropdownlist id="drpUserList" autopostback="true"onselectedindexchanged="myDrop_Selecte...
阅读全文
摘要:select row_number()over(order by id) as a,id from t_users
阅读全文
摘要:document.getElementById("<%= tbxIdNo.ClientID %>")
阅读全文
摘要:insert into users2(id,aname) select id,aname from users
阅读全文
摘要:当从数据库中读取的数据绑定到dropdownlist时,只能用selecteitem.text再将这些数据取出来,因为数据库绑定到dropdownlist的过程中,只绑定了text,而没有绑定value。
阅读全文
摘要:DATENAME 返回代表指定日期的指定日期部分的字符串。 语法 DATENAME ( datepart , date ) 参数 datepart 是指定应返回的日期部分的参数。下表列出了 Microsoft® SQL Server™ 识别的日期部分和缩写。 日期部分 缩写 year yy, yyyy quarter qq, q month mm, m dayofyear dy...
阅读全文
摘要:string time = DateTime.Now.ToString(); string nowtime = time.Substring(9, 5); Console.WriteLine(nowtime); Console.ReadLine();
阅读全文
摘要:set只能为一个结果赋值 use myexample go declare @a varchar(50) set @a=(select top 1 id from users) if(@a<=convert(varchar(100),getdate(),24)) print @a else print convert(varchar(100),getdate(),24) go 而select能够同...
阅读全文