摘要: SQL面试题[经典收录] 收藏 SQL面试题(1)create table testtable1 ( id int IDENTITY, department varchar(12) )select * from testtable1 insert into testtable1 values('设计') insert into testtable1 values('市场') insert into testtable1 values('售后') /* 结果 id department 1 设计 2 市场 3 售后 */ create table 阅读全文
posted @ 2012-10-30 22:51 洗耳恭听兼烂笔头 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 小小+霸霸+王王=小霸王 小=?,霸=?,王=? 用sql求证参考答案:declare @data int,@i int,@j int,@l int set @data=100 while (@data<=999) begin set @i=@data/100 set @j=@data/10 % 10 set @l=@data % 10 if((@i+@j+@l)*11=@data) begin Select @data data,@i i,@j j,@l l break end set @data=@data+1 end; 分析: II+JJ+LL=IJL I*10+I +J... 阅读全文
posted @ 2012-10-30 22:36 洗耳恭听兼烂笔头 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 2 .列举ASP.NET 页面之间传递值的几种方式。 答. 1).使用QueryString, 如....?id=1; response. Redirect().... 2).使用Session变量 3).使用Server.Transfer3. 一列数的规则如下: 1、1、2、3、5、8、13、21、34...... 求第30位数是多少, 用递归算法实现。 答:public class MainClass { public static void Main() { Console.WriteLine(Foo(30)); } public static int Foo(int ... 阅读全文
posted @ 2012-10-30 22:28 洗耳恭听兼烂笔头 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Math.Round(0.333333,2);//按照四舍五入的国际标准 阅读全文
posted @ 2012-10-30 17:21 洗耳恭听兼烂笔头 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 整数或者小数:^[0-9]+\.{0,1}[0-9]{0,2}$只能输入数字:"^[0-9]*$"。只能输入n位的数字:"^\d{n}$"。只能输入至少n位的数字:"^\d{n,}$"。只能输入m~n位的数字:。"^\d{m,n}$"只能输入零和非零开头的数字:"^(0|[1-9][0-9]*)$"。只能输入有两位小数的正实数:"^[0-9]+(.[0-9]{2})?$"。只能输入有1~3位小数的正实数:"^[0-9]+(.[0-9]{1,3})?$"。只 阅读全文
posted @ 2012-10-30 10:35 洗耳恭听兼烂笔头 阅读(304) 评论(0) 推荐(0) 编辑