oracle日期无法修改年度

来源:百度知道 编辑:UC知道 时间:2024/05/31 01:20:59
我就像把2008改成2009,但是出来个这提示,怎么处理,求救!!!!
21147813 好像说的有点道理,这个表的数据量很大,所以数据表按年建立了分区,修改了年份会导致数据转移至另一个分区了。所以不允许修改,我按照另一种思路把这些数据都修改了,哈哈
多谢大侠们

该表是分布式地放置的 你修改该值 那么 这条记录保存的位置就可能会改变(比如从A机器到B机器)

If column is part of the partitioning key of a partitioned table, then UPDATE will fail if you change a value in the column that would move the row to a different partition or subpartition, unless you enable row movement. Please refer to the row_movement_clause of CREATE TABLE or ALTER TABLE.

是oracle吗
oracle这样是不行的,应该在select *后面加上select rowid

select t.*,t.rowid from emp t;
SQLSERVER的话我就不知道了,

回楼下 FOR UPDATE好像是TOAD里用的更新方式~~

学习了...

运行 ALTER TABLE table_name ENABLE ROW MOVEMENT
允许更改该栏位

运行 ALTER TABLE table_name ENABLE ROW MOVEMENT
允许更改该栏位

回答者: xeonol - 门吏 二级 2009-11-5 16:33
-----------------------------------------
up