插入数据
来源:互联网 发布:网络使人更亲近的例子 编辑:程序博客网 时间:2024/05/24 07:40
导数据命令:
exp 用户名/密码@网络连接名 file='备份文件存储路径' grants=y owner=需备份的用户名
imp 用户名/密码@网络连接名 file='备份文件存放的路径' grants=y ignore=y fromuser=源数据用户名 touser=目标用户名
多表插入
insert all
into a(lastname) values(last_name)
into b(sex) values(sex)
select last_name,sex from employees;
通过select 子查询数据插入表薪水乘以10%
insert into scott.bonus(ename,job,sal)select ename,jop,sal*.10
条件插入多张表
根据汇总金额大小分别插入不同的表
insert all
when sum_orders <1000 then
into small_customers
when sum_orders >=10000 and sum_orders<100000 then
into medium_customers
else
into large_customers
select customer_id,sum(order_total) sum_orders
from oe.orders
group by customer_id
- 插入数据
- 插入数据
- 插入数据
- 插入数据
- 插入数据
- 插入数据
- 数据插入
- 数据插入
- 插入数据
- 插入数据
- 插入数据
- mongodb批量插入插入数据
- 批量插入数据重复插入
- 插入数据与更新数据
- 插入大量数据
- 插入数据Parameters.add
- 大批量数据的插入
- 批量插入数据集
- div+css基础——2.网页宽度和居中设置
- CSS3——iPhone
- VB与API学习笔记(7)动画与特效
- Android学习:用户界面UI之AlertDialog
- 图的构造、DFS、BFS 以及图的删除实现
- 插入数据
- 用户模式异步过程调用(APC)
- 简单配置自己的Bash Shell
- QEMU-KVM Command Line学习笔记1
- SQLSERVER2008 18456错误
- euid和uid以及gcc的euid uid链接问题
- Cannot find bean: "EmpNumber" in any scope
- 【笔者支招】巧挪用户文件夹提高系统盘稳定性
- Largest Rectangle in Histogram