SQL语句,查询
来源:互联网 发布:mac 实用工具 编辑:程序博客网 时间:2024/05/16 11:02
↘多对多
select c.* from course c, (select sc.* from sc,(select * from student where name='liu') s where s.id=sc.id_student) sc where c.id=sc.id_course;
↘查找ID为18的blog 的所以评论。1条 查 多条
select * from ( select * from blog where id=18 ) b,comment c where b.blog_id=b.id;或者是 select c.* from comment as c where c.blog_id=18;
↘查询ID为18的blog的分类。 1条 查 1条
select c.* from ( select * from blog where id=18 ) b,category c where b.category_id=c.id;
↘分页查询
select * from ( select my_table.*, rownum my_rownum from ( select name, birthday from employee order by birthday ) my_table where rownum < 120 ) where my_rownum >= 100;
@@@
- sql查询语句--连接语句
- SQL查询语句基础
- 通用SQL查询语句
- SQL查询语句汇总
- 一个SQL查询语句
- SQL查询语句精华
- SQL查询语句使用
- SQL查询语句
- access sql语句查询
- SQL查询语句精华
- SQL查询语句使用
- SQL查询语句精华
- sql查询语句汇总
- SQL查询语句大全
- SQL查询语句使用
- SQL查询语句大全
- SQL查询语句使用
- SQL查询语句语法
- 凭证保存后被他人修改,但是部分凭证上的制单人没有变更。
- linux xinetd 与 telnet
- 明细分类账不想显示对方科目,怎么办?
- C/C++语言void及void指针深层探索
- MD5
- SQL语句,查询
- MyEclipse自动生成映射文件
- C/C+语言struct深层探索
- 开关量检测
- Java的环境变量简单配置,
- if we do not declare the sql-type or attribute type, it defaults to String or VARCHAR(255).
- 2012届华为校园招聘上机考试题目(9月6日下午1点场)
- 关于Android中传递数据的一些讨论
- C语言高效编程的四大绝招