Interview
共 5 篇文章
SqlServer数据库分页
--创建测试表 CREATE TABLE [t_test] ( [tid] INT IDENTITY(1,1) PRIMARY KEY, [varcharValue] VARCHAR(50), [floatValue] FLOAT ) --向表中插入10000条数据 declare @counter int set @counter=1 while @counter<10000 begin insert into [t_test] values(Convert(varchar(50),Rand()),Rand()) set @counter=@counter+1 end go --查询表中数…
遍历一个文件夹下的所有文件
using System; using System.IO; //a quick sample recursive solution... namespace MyConsoleApplication { class Program { static void Main(string[] args) { ProcessDir("D:/spket", 3); Console.ReadLine(); } /// /// How to loop through all files in a folder using C# /// /// folder source directory /// Ho…
经典Sql面试题收集!!
Sql常见面试题(总结) 1.用一条SQL语句 查询出每门课都大于80分的学生姓名 name kecheng fenshu 张三 语文 81 张三 数学 75 李四 语文 76 李四 数学 90 王五 语文 81 王五 数学 100 王五 英语 90 A: select distinct name from table where name not in (select distinct name from table where fenshu<=80) 2.学生表 如下: 自动编号 学号 姓名 课程编号 课程名称 分数 1 2005001 张三 0001 数学 69 2 2005002 李…
Sql面试题
SQL经典面试题及答案 2007年07月27日 星期五 上午 08:42 1.一道SQL语句面试题,关于group by 表内容: 2005-05-09 胜 2005-05-09 胜 2005-05-09 负 2005-05-09 负 2005-05-10 胜 2005-05-10 负 2005-05-10 负 如果要生成下列结果, 该如何写sql语句? 胜 负 2005-05-09 2 2 2005-05-10 1 2 drop database Test create database test use test create table _table(_date varchar(10)…