原创 django自定義sql返回元組的處理

1.views.py def scheduling(request): cursor = connection.cursor() cursor.execute("select staff_name from alarm_pl

原创 python 文件調用其他路徑

python 的 sys.path.append()import sys   sys.path.append(’引用模塊的地址') 12os.path.dirname(path) #返回文件路徑 os.path.abspath(path)

原创 Oracle rman 命令總結

--登錄rmanrman target /rman target sys/passworkrman target sys/passwork nocatalog (控制文件方式)rman target sys/passwork catal

原创 MySQL對數據表已有表進行分區表

1.由於數據量較大,對現有的表進行分區 操作方式.可以使用ALTER TABLE來進行更改表爲分區表,這個操作會創建一個分區表,然後自動進行數據copy然後刪除原表, 猜測服務器資源消耗比較大。 ALTER TABLE tbl_rtdata