dbalearner
Technical User
Oracle does not seem to like:
CREATE TABLE T AS (SELECT *,RPAD('*',4000,'*) FROM ALL_OBJECTS) ORDR BY dbms_raddom.random
*
ERROR at line 1:
ORA-00923: FROM keyword not found where expected
However I think the only way is to do:
CREATE TABLE T AS (SELECT * FROM ALL_OBJECTS);
Table created.
ALTER TABLE T ADD IND_PAD VARCHAR2(4000);
Table altered.
UPDATE T SET IND_PAD = RPAD('*',4000,'*');
72049 rows updated.
Anyway this can be done in CTAS itself?
Thanks
CREATE TABLE T AS (SELECT *,RPAD('*',4000,'*) FROM ALL_OBJECTS) ORDR BY dbms_raddom.random
*
ERROR at line 1:
ORA-00923: FROM keyword not found where expected
However I think the only way is to do:
CREATE TABLE T AS (SELECT * FROM ALL_OBJECTS);
Table created.
ALTER TABLE T ADD IND_PAD VARCHAR2(4000);
Table altered.
UPDATE T SET IND_PAD = RPAD('*',4000,'*');
72049 rows updated.
Anyway this can be done in CTAS itself?
Thanks