九叶儿

关注具体问题的解决

07 2011 档案

关于sqlserver单表备注的问题
摘要:最近一直在和表结构打交道,头都大了,最让人头痛的就一个字段表备注(value),同样一个字段用相同的查询语句查询出来放到不同的地方,竟然出现显示和不显示的问题,而且找到这个字段也十分费神。 以前这个字段是放在sysproperties里面,在2005下竟然找不到这个表了,千回百转之下,终于发现,原来是转到sys.extended_properties这个表中了,无比忧郁。 另外这个value貌似还... 阅读全文

posted @ 2011-07-18 14:29 九叶儿 阅读(1371) 评论(1) 推荐(0)

Repeater嵌套dropdownlist控件
摘要:<asp:repeater id="Repeater1" runat="server" onitemdatabound="Repeater1_ItemDataBound"> <itemtemplate> <div> <asp:dropdownlist id="drpUserList" autopostback="true"onselectedindexchanged="myDrop_Selecte... 阅读全文

posted @ 2011-07-11 15:00 九叶儿 阅读(532) 评论(0) 推荐(0)

为选出数据排序
摘要:select row_number()over(order by id) as a,id from t_users 阅读全文

posted @ 2011-07-08 10:15 九叶儿 阅读(157) 评论(0) 推荐(0)

javascript 获取asp.net服务器端控件id
摘要:document.getElementById("<%= tbxIdNo.ClientID %>") 阅读全文

posted @ 2011-07-07 09:23 九叶儿 阅读(143) 评论(0) 推荐(0)

一个表中的数据复制出来之后,插入另外一个表
摘要:insert into users2(id,aname) select id,aname from users 阅读全文

posted @ 2011-07-06 15:01 九叶儿 阅读(220) 评论(0) 推荐(0)

关于selecteditem.value和selecteditem.text
摘要:当从数据库中读取的数据绑定到dropdownlist时,只能用selecteitem.text再将这些数据取出来,因为数据库绑定到dropdownlist的过程中,只绑定了text,而没有绑定value。 阅读全文

posted @ 2011-07-05 13:58 九叶儿 阅读(579) 评论(0) 推荐(0)

sql 日期获取
摘要:DATENAME 返回代表指定日期的指定日期部分的字符串。 语法 DATENAME ( datepart , date ) 参数 datepart 是指定应返回的日期部分的参数。下表列出了 Microsoft&reg; SQL Server&#8482; 识别的日期部分和缩写。 日期部分 缩写 year yy, yyyy quarter qq, q month mm, m dayofyear dy... 阅读全文

posted @ 2011-07-04 17:20 九叶儿 阅读(383) 评论(0) 推荐(0)

c#获取当前时间,不带日期
摘要:string time = DateTime.Now.ToString(); string nowtime = time.Substring(9, 5); Console.WriteLine(nowtime); Console.ReadLine(); 阅读全文

posted @ 2011-07-04 16:52 九叶儿 阅读(1199) 评论(2) 推荐(0)

set与select赋值问题,同时涉及时间比较
摘要: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能够同... 阅读全文

posted @ 2011-07-04 16:49 九叶儿 阅读(285) 评论(0) 推荐(0)

导航