日期:2014-05-17 浏览次数:20754 次
DROP TABLE t; CREATE TABLE t (id NUMBER,nm VARCHAR2(50)); INSERT INTO t VALUES(100,'AAA'); INSERT INTO t VALUES(101,'BBB'); INSERT INTO t VALUES(103,'CCC'); SELECT * FROM T; INSERT INTO T(id,nm) SELECT 1000+ROWNUM,nm FROM t;
------解决方案--------------------
insert into A表 select A表.nextval as id, az.name,az.age... from A表 az
使用select不要写values
------解决方案--------------------
insert into A表 select A表.nextval as id, az.name,az.age... from A表 az
使用select不要写values
------解决方案--------------------