zoukankan      html  css  js  c++  java
  • Oracle连接查询内容整理

    --内连接
    --select t.*,b.bumenmc from T_HQ_RYXX t,t_hq_bm b where t.bum = b.bumenbm
    --select * from t_hq_ryxx t join t_hq_bm b on t.bum in b.bumenbm

    --自连接
    --select * from t_hq_ryxx a,t_hq_ryxx b where a.bum in b.bum and a.xingb = 2;

    --左连接
    --select * from t_hq_ryxx a left join t_hq_bm b on a.bum = b.bumenbm;
    --select * from T_HQ_RYXX t,t_hq_bm b where t.bum = b.bumenbm(+)

    --右连接
    --select * from t_hq_ryxx a right join t_hq_bm b on a.bum = b.bumenbm;
    --select * from T_HQ_RYXX t,t_hq_bm b where t.bum(+)= b.bumenbm

    --全连接
    --select * from t_hq_ryxx a full join t_hq_bm b on a.bum = b.bumenbm;

    select * from T_HQ_RYXX t,t_hq_bm b where t.bum= b.bumenbm(+)

  • 相关阅读:
    BJDCTF-WP
    Python 每日一练(4)
    Python 每日一练(3)
    BUUCTF Crypto
    Python每日一练(1)
    Python 每日一练(2)
    oracle 组函数
    oracle 组函数
    oracle
    前端实战遇到问题
  • 原文地址:https://www.cnblogs.com/shadowduke/p/4922031.html
Copyright © 2011-2022 走看看