码迷,mamicode.com
首页 >  
搜索关键字:hq    ( 129个结果
数据查询练习1~11
--1.select * from T_HQ_STUDENT;select SNAME, SSEX, CLASS from T_HQ_STUDENT;--2.select distinct DEPART from T_HQ_TEACHER;--3.select * from T_HQ_STUDENT...
分类:其他好文   时间:2015-10-29 00:26:40    阅读次数:236
151028
select sname,ssex,class from t_hq_student;select distinct depart from t_hq_teacher;select * from t_hq_student;select * from t_hq_score where degree be...
分类:其他好文   时间:2015-10-28 23:03:05    阅读次数:319
学生选课数据库SQL语句练习题
1、select Sname , Ssex ,Class from t_hq_student;2、select distinct Depart from t_hq_teacher;3、select * from t_hq_student;4、select * from t_hq_Score wher...
分类:数据库   时间:2015-10-28 10:44:12    阅读次数:237
151027
select t.*, t.rowid from T_HQ_RYXX tselect nianl,xingm from t_hq_ryxx;select nianl as 年龄,xingm as 姓名 from t_hq_ryxx ;select nianl 年龄 from t_hq_ryxx;se...
分类:其他好文   时间:2015-10-28 09:31:13    阅读次数:153
Oracle中any和all的区别用法
对于any,all的用法,书中说的比较绕口,难以理解,如果通过举例就会比较清晰. any的例子:select * from t_hq_ryxx where gongz > any(select pingjgz from t_hq_bm);输出的结果是所有大于字段'pingjgz'中最小数的值,...
分类:数据库   时间:2015-10-27 23:19:30    阅读次数:720
oracle中 some、any、all 三者的区别及个人总结,归纳!
any :如果是大于号时( a > b ),那么a中所有大于b中最小的那个数的值,就会被输出出来。 如果是小于号时( a any (select pingjgz from t_hq_bm);some:用法与any相同,只是any多用于非的环境中。all:如果是大于号时( a > b ),那么a...
分类:数据库   时间:2015-10-27 22:01:47    阅读次数:223
DQL数据查询语言
--查询全表select * from t_hq_ryxx;--查询字段select xingm as 姓名 ,gongz as 工资 from t_hq_ryxx;--链接字段查询select xingm || xingb as 姓名性别 from t_hq_ryxx--去除重复查询select ...
分类:编程语言   时间:2015-10-27 17:03:49    阅读次数:145
DML数据操作语言练习
--创建表T_HQ_BM2--create table t_hq_bm2 as select * from t_hq_bm;commit;--添加行内容--insert into t_hq_bm2 values ('107','研发部','147258369');commit;--删除部门编码为10...
分类:编程语言   时间:2015-10-26 23:57:53    阅读次数:333
Oracle建表
create table T_HQ_E( xingm VARCHAR2(10), chengj NUMBER not null, jiatzz VARCHAR2(15))tablespace SYSTEM pctfree 10 pctused 40 initrans 1 maxtra...
分类:数据库   时间:2015-10-26 22:22:28    阅读次数:229
常用的SQL语句(牢记)
上课时的重要内容,其中表 t_hq, t_hq2, 以及字段的名字是举例说明。update t_hq t set t.bumendh = '10086';commit;全表更新电话,commit是提交的命令。update是关键字,t_hq是表名,set是关键字,更改电话的关键字,这句语句意思是将表内...
分类:数据库   时间:2015-10-26 22:09:29    阅读次数:198
129条   上一页 1 ... 6 7 8 9 10 ... 13 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!