![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Oracle
diavy
这个作者很懒,什么都没留下…
展开
-
truncate,delete,drop的異同點
truncate,delete,drop的異同點注意:這裡說的delete是指不帶where子句的delete語句相同點truncate和不帶where子句的delete, 以及drop都會刪除表內的數據不同點:1. truncate和 delete只刪除數據不刪除表的結構(定義) drop語句將刪除表的結構被依賴的約束(constrain),觸發器(trigger),索引(inde转载 2009-08-18 15:17:00 · 306 阅读 · 0 评论 -
ORACLE批量更新四种方法比较
现在我们有2张表 如下:T1--大表 10000笔 T1_FK_ID T2--小表 5000笔 T2_PK_IDT1通过表中字段ID与T2的主键ID关联模拟数据如下:--T2有5000笔数据create table T2asselect rownum id, a.* from all_objects a where 1=0;-- Create转载 2009-08-18 14:21:00 · 501 阅读 · 0 评论