摘要:
-- 内连接:-- 显示员工姓名、工资和公司所在地 select e.ename, e.sal, d.dname from emp e,dept d; -- 笛卡尔积 select e.ename, e.sal, d.dname from emp e join dept d; -- oracle语法 阅读全文
posted @ 2018-07-07 23:52
zhuangrunwei
阅读(1347)
评论(0)
推荐(0)
摘要:
-- 工资高于3000的员工select * from emp where sal > 3000;-- 工资在2500和3000之间的员工select * from emp where sal <= 3000 and sal >= 2500;-- 指定日期后入职的员工select * from em 阅读全文
posted @ 2018-07-07 22:22
zhuangrunwei
阅读(522)
评论(0)
推荐(0)
摘要:
-- 创建表 drop table test; create table test(id number(10), name varchar2(10)); -- 创建对列 drop sequence seq_id; create sequence seq_id minvalue 1 nomaxvalu 阅读全文
posted @ 2018-07-07 20:30
zhuangrunwei
阅读(225)
评论(0)
推荐(0)
摘要:
conn scott/root;create table student (id number(3), name varchar2(10), sex char(2), sno number(3));alter table student add(sal number(7,2), birthday d 阅读全文
posted @ 2018-07-07 19:55
zhuangrunwei
阅读(192)
评论(0)
推荐(0)
摘要:
char 固定长度,最长2000,会使用空格将值填充到指定的长度。优点,查询快。 varchar2 1、最大长度4000字节或4000字符2、变长,末尾不添加无意义的空格3、如果试图在 varchar2 字段中插入超过其规定范围的字符,出错示例:insert into emp(empno, enam 阅读全文
posted @ 2018-07-07 19:40
zhuangrunwei
阅读(248)
评论(0)
推荐(0)
摘要:
1、命令行参数 比如:exp scott/tiger@orcl tables=emp file=D:\test.dmp 2、交互提示符 比如:C:\Users\Administrator>exp + 回车 输入用户名,回车 输入密码,回车 回车 输入导出的路径 回车 回车... 3、参数文件 新建一 阅读全文
posted @ 2018-07-07 19:34
zhuangrunwei
阅读(584)
评论(0)
推荐(0)
摘要:
imp help=y导入自己的表:exp scott/tiger@orcl tables=(student, address) file=D:\scott_stu_add.dmp log=D:\scott_stu_add.logimp scott/tiger@orcl file=D:\scott_s 阅读全文
posted @ 2018-07-07 19:01
zhuangrunwei
阅读(200)
评论(0)
推荐(0)
摘要:
exp help=yconn scott/tiger;select * from tab;create table student(sno int, sname varchar2(10), sage int, constraint pk_sno primary key(sno));insert in 阅读全文
posted @ 2018-07-07 18:26
zhuangrunwei
阅读(462)
评论(0)
推荐(0)

浙公网安备 33010602011771号