码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
Poj(2352)——Stars(树状数组)
Description Astronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the level of a star be an amount of the stars that are ...
分类:编程语言   时间:2015-05-30 16:45:11    阅读次数:146
【Container With Most Water】cpp
题目:Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints ...
分类:其他好文   时间:2015-05-30 16:37:24    阅读次数:78
sqlserver 连接查询的问题,a表无重复记录,与b表中的记录为1对N关系,如何在查得a表信息时统计b表记录数
第一种select t1.id, t1.name, t1.age, (select count(1) from b t2 where t1.id = t2.id) filecount from a t1第二种select t1.id, t1.name, t1....
分类:数据库   时间:2015-05-30 12:06:15    阅读次数:134
Oracle数据库查询分页SQL语句
Oracle数据库查询分页数据SQL语句:select * from (select a.*,rownum row_num from (select * from mytable t order by t.id desc) a ) b where b.row_num between...
分类:数据库   时间:2015-05-30 12:04:25    阅读次数:157
一个人选出2门以上不及格的课程sql语句
(1)查询出有两门不及格的学生信息。思路:1.先用Where子句配合score<60的条件,筛选出所有不及格的人和其不及格的课程2.再用group by子句依据姓名进行分组,并用count函数来统计每个人不及格的课程数3.最后用having子句对分组聚合后的结果进行筛选出count统计结果等于2的学...
分类:数据库   时间:2015-05-30 10:38:01    阅读次数:236
Host is not allowed to connect to this MySQL server 错误的处理方法
1.mysql>use mysql;mysql>update user set host = '%' where user = 'root';mysql>select host, user from user;2.mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'...
分类:数据库   时间:2015-05-30 10:33:38    阅读次数:108
leetcode 11 -- Container With Most Water
Container With Most Water 题目: Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is...
分类:其他好文   时间:2015-05-30 09:28:02    阅读次数:137
Oracle学习(5):多表查询
多表查询 连接的类型: 等值连接,不等值连接,外连接,自连接 等值连接 SQL> --等值连接: 查询员工信息:员工号,姓名,薪水和部门名称 SQL> select empno,ename,sal,dname   2  from emp,dept   3  where emp.deptno=dept.deptno;      EMPNO ENAME ...
分类:数据库   时间:2015-05-30 09:23:28    阅读次数:219
thinkphp对数据库操作有哪些内置函数
getModelName() 获取当前Model的名称getTableName() 获取当前Model的数据表名称switchModel(type,vars=array()) 动态切换模型table() 设置当前操作的数据表field() 设置要查询的数据字段where() 设置查询或者操作条件da...
分类:数据库   时间:2015-05-30 08:08:14    阅读次数:160
Oracle学习(2):过滤和排序
Oracle的过滤与排序 where过滤语法 SQL> --查询10号部门的员工 SQL> select *   2  from emp   3  where deptno=10;      EMPNO ENAME    JOB              MGR HIREDATE         SAL       COMM     DEPTNO            ...
分类:数据库   时间:2015-05-29 23:21:15    阅读次数:404
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!