日期:2014-05-17 浏览次数:21044 次
[TEST@ora10gr1#2009-11-04/08:37:07] SQL>--第一个 [TEST@ora10gr1#2009-11-04/08:37:07] SQL>create table ta(taid int,id int); Table created. [TEST@ora10gr1#2009-11-04/08:37:07] SQL>insert into ta values(1,2); 1 row created. [TEST@ora10gr1#2009-11-04/08:37:07] SQL>insert into ta values(1,2); 1 row created. [TEST@ora10gr1#2009-11-04/08:37:07] SQL>insert into ta values(1,2); 1 row created. [TEST@ora10gr1#2009-11-04/08:37:07] SQL>insert into ta values(1,2); 1 row created. [TEST@ora10gr1#2009-11-04/08:37:07] SQL>insert into ta values(1,2); 1 row created. [TEST@ora10gr1#2009-11-04/08:37:07] SQL>insert into ta values(1,2); 1 row created. [TEST@ora10gr1#2009-11-04/08:37:07] SQL>insert into ta values(1,2); 1 row created. [TEST@ora10gr1#2009-11-04/08:37:07] SQL>insert into ta values(1,2); 1 row created. [TEST@ora10gr1#2009-11-04/08:37:07] SQL>insert into ta values(1,2); 1 row created. [TEST@ora10gr1#2009-11-04/08:37:07] SQL>insert into ta values(1,2); 1 row created. [TEST@ora10gr1#2009-11-04/08:37:07] SQL>select * from ta; TAID ID ---------- ---------- 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 10 rows selected. [TEST@ora10gr1#2009-11-04/08:37:07] SQL>update ta set taid = rownum where id = 2; 10 rows updated. [TEST@ora10gr1#2009-11-04/08:37:07] SQL>select * from ta; TAID ID ---------- ---------- 1 2 2 2 3