- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
/fogxugang /fogxugang hhttttpp::////hhii..bbaaiidduu..ccoomm//ffooggxxuuggaanngg Oracle 单表基本操作 Oracle 单表基本操作 OOrraaccllee 单单表表基基本本操操作作 在oracle 文件中,以--开头表示单行注释。 创建表 创建一张表,练习create语句的语法 create table 表名 (列名 数据类型 [约束条件],列名 数据类型 [约束条 件]。。。) --问题:创建一张表student(sno,sname,sex,birth,score) create table STUDENT( sno number primary key, sname nvarchar2(10) not null, sex nvarchar2(1), birth date, score number(3,1) ) 修改表((结构))(( )) --alter table 表名 --[add 列名数据类型约束条件] --[modify 列名数据类型] --[drop 列约束] alter table student add other varchar2(20) not null; alter table student modify other number; /fogxugang /fogxugang hhttttpp::////hhii..bbaaiidduu..ccoomm//ffooggxxuuggaanngg 删除表 --drop table 表名 drop table student 单表查询语 查询student表中的全部记录 Select * from student; 查询student表的sno,sname的全部记录(映射) select sno,sname from student; 查询student表中全部记录,按学分进行升序排列 select * from student order by score asc select * from student order by score 查询student表中全部记录,按学分进行升序排列,如果学分相同,再按学号进行降序排列. select * from student order by score,sno desc /fogxugang /fogxugang hhttttpp::////hhii..bbaaiidduu..ccoomm//ffooggxxuuggaanngg 查询student表中全部记录,按学分进行降序排列 select * from student order by score desc 查询出student表中的全部性别,相同值只显示一个 select distinct sex from student 查询student表中女学生的记录 select * from student where sex = 12 查询student表中“e”学生的详细记录 select * from student where sname = e 查询student表中学号在2和5之间的学生记录 between startNumand endNum:包含开始和结束的两个数 select * from student where sno between 2 and 5 in select * from student where sno in (2,4,5,9); select * from student where sno = 2 and sno =5 and sex = 1 /fogxugang /fogxugang
文档评论(0)