left join加上where条件的困惑 摘自:http://hi.baidu.com/dyzhong/blog/item/b42e56a93c0bfcf71e17a2c0.html left join的困惑:一旦加上where条件,则显示的结果等于inner join 将where 换成 and 用where 是先连接然后再筛选 用and 是先筛选再连接 数据库在通...【阅读全文】
EXPDP按条件导出,将下面SQL语句的查询结果导出export ORACLE_SID=sidexpdp system/password parfile=/home/oracle/backup/02.par--执行SQLselect * from hx_ff.ff_ffkf a where substr(a.ssswjg_dm ,1,3) in ('137','237');select * from hx_ff.ff_kfgly a where substr(a.kfgly_dm ,1...【阅读全文】
SQL> host type c:\tmp\a.txt10,BeiJing,中国|20,上海,中国|30,纽约,美国|SQL> create or replace directory datadir as 'c:\tmp';目录已创建。SQL> grant all on directory datadir to public;授权成功。SQL> CREATE TABLE DEPTNO 2 ( 3 "DEPTNO" NUMBER(2...【阅读全文】
环境:OS:Red Hat Linux As 5DB:11.2.0.11.查看网络号[grid@node1 ~]srvctl config networkNetwork exists: 1/192.168.50.0/255.255.255.0/eth0, type static该命令需要在11.2.0.2以上的版本才有.2.手工添加监听器只需要在一个节点上操作[grid@node1 ~]srvctl add listener -l listener_01 -o $ORACLE_HO...【阅读全文】
SQL> host type c:\tmp\a.txt10,BeiJing,中国|20,上海,中国|30,纽约,美国|SQL> create or replace directory datadir as 'c:\tmp';目录已创建。SQL> grant all on directory datadir to public;授权成功。SQL> CREATE TABLE DEPTNO 2 (&...【阅读全文】
ORACLE 11g中,可以对虚拟列分区,虚拟列没有实际的存储空间,但是和普通列一样,可以创建索引,作为分区键,收集统计信息等。一、创建SQL> create table virtual_partition_table ( 2 create_date date not null, 3 virtual_num number generated always as (to_number(to_char(creat...【阅读全文】
可以table形式返回數據.点击(此处)折叠或打开create or replace package PKG_LDAP AUTHID CURRENT_USER as/**************************************** Ver Date Author Description --...【阅读全文】