標籤:轉至:http://blog.163.com/aner_rui/blog/static/12131232820105901451809/ 2。保留一條(這個應該是大多數人所需要的 ^_^)Delete HZT Where ID Not In (Select Max(ID) From HZT Group By Title)註:此處保留ID最大一條記錄1、尋找表中多餘的重複記錄,重複記錄是根據單個欄位(peopleId)來判斷select * from peoplewhere
標籤:1.oracle查詢資料庫中表的個數:select count(*) from user_tables這個操作的前提是,登入成功2.mysql查詢資料庫中表的個數:SELECT COUNT(*) TABLES, table_schema FROM information_schema.TABLES WHERE table_schema = ‘資料庫‘ GROUP BY
標籤:# coding=utf-8__author__ = ‘jspdba‘u‘‘‘讀取oracle注釋‘‘‘import cx_Oracle # 匯入模組SQL=r"""select * from user_col_comments t where 1=1and t.comments is not n
標籤:/etc/rc.d/rc.local oracle 10g 自啟動環境:redhat 5.9 64位,oracle 10g1.修改dbstart指令碼:$ vi $ORACLE_HOME/bin/dbstart#ORACLE_HOME_LISTNER=/ade/vikrkuma_new/oracleORACLE_HOME_LISTNER=$ORACLE_HOME2.修改/etc/oratab為如下格式:$ vi
標籤:1.下載Oracle用戶端a) :http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html,點擊串連進入會出現以下頁面。選擇第一個Instant Client for Microsoft Windows (32-bit) 進行下載就可以了,請不要下載64bit的,我試過,不能實現串連的。b)
標籤:--1.隨機數select dbms_random.value from dual;select mod(dbms_random.random, 10) from dual;--0-9隨機數select abs(mod(dbms_random.random, 10)) from dual;--40-49隨機數select 40 + abs(mod(dbms_random.random, 10)) from dual; --2.Xmldeclare words