posts - 66, comments - 12, trackbacks - 0, articles - 0

          oracle sql 用法

          Posted on 2008-07-04 09:39 cyantide 閱讀(208) 評論(0)  編輯  收藏 所屬分類: 數據庫相關
          alter table t add  c1 varchar2(30)
          alter table t add  (c1 varchar2(30),c2 number(4))

          alter table t rename column c1  to c2
          alter table t modify c1 varchar(40)


          alter table t drop column  c1

          alter table trename to t1
          rename t1 to t2


          從一個表中查找另一個表中沒有的值

          比如要從DEPT中查找在表EMP中不存在數據的所有部門(數據中,DEPTNO值為40的記錄在表EMP中不存在)


          1select deptno from dept  
          2minus  
          3select deptno from emp





          主站蜘蛛池模板: 武冈市| 广元市| 慈溪市| 吴旗县| 榆林市| 东乡县| 延长县| 梨树县| 会宁县| 汕尾市| 搜索| 诏安县| 灵台县| 玛纳斯县| 文成县| 衡阳市| 固始县| 湘潭市| 莱州市| 仪陇县| 新乡县| 灵川县| 武穴市| 治县。| 临沭县| 昆山市| 柯坪县| 巴塘县| 林口县| 开化县| 云林县| 泰宁县| 翼城县| 荥经县| 大城县| 郓城县| 紫金县| 理塘县| 贵定县| 乌苏市| 灯塔市|