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

          oracle sql 用法

          Posted on 2008-07-04 09:39 cyantide 閱讀(207) 評論(0)  編輯  收藏 所屬分類: 數(shù)據(jù)庫相關(guān)
          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中不存在數(shù)據(jù)的所有部門(數(shù)據(jù)中,DEPTNO值為40的記錄在表EMP中不存在)


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





          主站蜘蛛池模板: 长治县| 金平| 拜泉县| 砀山县| 全州县| 朝阳市| 苗栗市| 武川县| 大化| 黑龙江省| 司法| 正镶白旗| 昌图县| 化德县| 屯留县| 井冈山市| 沂水县| 望奎县| 宜川县| 嘉荫县| 新郑市| 迁西县| 都匀市| 安多县| 阳谷县| 皋兰县| 云梦县| 固镇县| 宜宾市| 平阳县| 水城县| 鄂州市| 桑日县| 清河县| 河南省| 桐柏县| 宁津县| 荆门市| 金阳县| 泰州市| 靖宇县|