資料庫sql互轉(oracle轉mysql為例子)

2021-09-07 20:47:14 字數 699 閱讀 8300

**:

在powerdesinger裡找到 file -->> reverse engineer --->> database

轉換成mysql適用的資料庫,從選單欄上「database」--->「change current dbms」

這樣oracle的資料庫模型就變為mysql了,這裡只要把sql匯出就可以了

選擇匯出的路徑,匯出的檔名稱

這樣就成功了,你可以看自己設定的路徑的sql就是mysql的sql檔案了,其他資料庫轉換也是可以的。

Oracle資料庫SQL總結

1oracle時間段的查詢 1.1 場景 根據使用者輸入的時間段過濾出相應記錄。1.2 解決辦法 第一種寫法 sql select from t xjxx xjgl where createdate to date 2011 6 13 yyyy mm dd and createdate to dat...

Oracle資料庫SQL總結

1oracle時間段的查詢 1.1 場景 根據使用者輸入的時間段過濾出相應記錄。1.2 解決辦法 第一種寫法 select from t xjxx xjgl where createdate to date 2011 6 13 yyyy mm dd and createdate to date 20...

Oracle資料庫SQL審計

在我們日常的工作中,一些安全性的要求高的資料庫需要增加審計操作,哪個使用者什麼時間做了什麼操作。1.開啟資料庫的審計 alter system set audit sys operations true scope spfile 審計管理使用者 alter system set audit trai...