List listGroup = sysGroupBll.Where(o => o.IsSb
== true, o => o.Id).ToList(); List items = new List(); foreach (var group in
listGroup) { items.Add(new...
分类:
Web程序 时间:
2014-05-16 03:30:39
阅读次数:
401
IF EXISTS ( --判断是否存在合符条件的记录 SELECT TOP ( 1 ) 1 FROM
[DCL].[SecurityUser] WHERE [U...
分类:
数据库 时间:
2014-05-15 20:51:00
阅读次数:
336
String slctpsql="select id ,"+uid+","+ddd+","+score+",'"+mark+"' ,"+markid+" ,"+exam.getId()+" from Test_Paper where testBaseId=(select id from Test_Base where baseTestId="+judgemap.get(i).getId()+" a...
分类:
数据库 时间:
2014-05-15 20:36:45
阅读次数:
434
Problem Description
At the entrance to the university, there is a huge rectangular billboard of size h*w (h is its height and w is its width). The board is the place where all possible announcement...
分类:
其他好文 时间:
2014-05-15 19:48:31
阅读次数:
348
当月的数据select * from MOPICK where
dateDiff(m,getdate(),START_DATE)=0
分类:
数据库 时间:
2014-05-15 11:37:10
阅读次数:
562
--创建一个表,此表作为子表
create table fk_t as select *from user_objects;
delete from fk_t where object_id is null;
commit;
--创建一个表,此表作为父表
create table pk_t as select *from user_objects;
delete from p...
分类:
数据库 时间:
2014-05-15 11:17:07
阅读次数:
248
最近面试遇到了一道面试题,顿时有点迷糊,只说出了思路,后来百度了一下,整理了一下思路,于是记录下来,方便以后学习。(面试题请参见附件)
相关的数据表:
1.Score表
2.[User]表
SQL语句如下:
--方法一:静态SQL
SELECT * FROM
(SELECT UID,Name, Score,ScoreName FROM Score,[User] WHERE S...
分类:
数据库 时间:
2014-05-15 05:46:12
阅读次数:
296
1.相关数据表
Score表
[User]表
SQL语句如下:
--查询出各科成绩最好的学生信息
--自连接
--SELECT TOP 1 * FROM Score B WHERE B.ScoreName = '数学' ORDER BY B.Score DESC
SELECT A.ID,U.Name,A.ScoreName,A.Score
FROM Score A,[Use...
分类:
数据库 时间:
2014-05-15 05:02:05
阅读次数:
477
LeetCode-001 Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2...
分类:
其他好文 时间:
2014-05-15 04:34:50
阅读次数:
293
SQL中的Delete语句从表中删除一条或多条记录,同时可以给Delete语句提供Where子句,SQL中的Select语句中可以使用的任何条件都可以在DELECT的WHERE子句中使用。Delete语句的语法格式是:DELETE[FROM]{table_name|view_name}[WHEREcondition]。如果不给Delete语句指定Where子句,..
分类:
数据库 时间:
2014-05-14 17:33:44
阅读次数:
332