Oracle小記

1、拼出刪除表數據的SQL

      eg: select 'delete' ||' '||table_name from user_tables

1 delete AP_FD_ORG
2 delete AP_FUNC
3 delete AP_MENU
4 delete AP_ORG
5 delete AP_ROLE
6 delete AP_ROLE_FUNC
7 delete AP_USER
8 delete AP_USER_ROLE
9 delete FA_BBZTB
10 delete FA_CODE_INFO


2、查詢所有用戶表

     select * from user_tables


3、將字符串轉換爲timestamp類型

TO_TIMESTAMP_TZ('2014-08-20 16:42:06.43','YYYY-MM-DD HH24:MI:SS.FF TZH:TZM')

發佈了15 篇原創文章 · 獲贊 12 · 訪問量 19萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章