數據庫
數據庫相關:Oracle,Sql Server,MySql,DB2,informix,sql語句......
摘要: As per the documentation on MySQL I moved the storage of passwords from using Password() to using MD5(). I read a number of places that stated that this was a method that couldn't be reversed and it was far more secure than the previous method. I was feeling confident that life was about to get a little more secure. While going through my daily RSS feeds and mailing lists for SpikeSource, I happenned upon a thread about someone discussing how easy it was to break MD5 hashes. It was a simple matt
閱讀全文
摘要: 1.如果存在就更新,不存在就插入用一個語句實;
2.分頁算法;
3.抽取/刪除重復記錄;
閱讀全文
摘要: Hibernate中支持3種形式實現繼承關系:
1. Table per concrete class 表與子類之間獨立一對一關系
2. Table per subclass 每個子類對應一張子表,并與主類共享主表
3. Table per class hierarchy 表與類一對多關系
閱讀全文
摘要: 數據庫中提供了兩種字段類型 Blob 和 Clob 用于存儲大型字符串或二進制數據(圖片)。
Blob 采用單字節存儲,適合保存二進制數據,如圖片文件。
Clob 采用多字節存儲,適合保存大型文本數據。
閱讀全文
摘要: Oralce中的to_date()函數用于將字符串轉換為日期對象,具體使用格式為: to_date( string, [ format_mask ], [ nls_language ] )
1. ORA-01810: format code appears twice
2. ORA-01722: invalid number
閱讀全文
摘要: 幾種常用數據庫的JDBC連接字符串
閱讀全文
摘要: Oracle中提供了sequence對象,由系統提供自增長的序列號,通常用于生成數據庫數據記錄的自增長主鍵或序號的地方.下面就主要介紹一下關于sequence對象的生成,修改,刪除等常用的操作:
閱讀全文
摘要: 1. UPDATE STATISTICS FOR TABLE tablename
2."could not do a physical order read to fetch next row"
3."DBSERVERNAME不在sqlhosts文件中"
4.導入導出
閱讀全文
摘要: 1. Oracle安裝完成后的初始口令?
internal/oracle
sys/change_on_install
system/manager
scott/tiger
sysman/oem_temp
2. ORACLE9IAS WEB CACHE的初始默認用戶和密碼?
administrator/administrator
3. oracle 8.0.5怎么創建數據庫?
用orainst。如果有motif界面,可以用orainst /m
閱讀全文
摘要: 我們在編寫MIS系統和Web應用程序等系統時,都涉及到與數據庫的交互,如果數據庫中數據量很大的話,一次檢索所有的記錄,會占用系統很大的資源,因此我們常常采用,需要多少數據就只從數據庫中取多少條記錄,即采用分頁語句。根據自己使用過的內容,把常見數據庫Sql Server,Oracle和My sql的分頁語句,從數據庫表中的第M條數據開始取N條記錄的語句總結如下:
閱讀全文