Hi again
I want to create an SQL that will put the default values in one database into another. The trouble is that most of the rows have ' ' as a default value (quotes included).
The select statement so far goes like this:
select 'alter TABLE '||table_name||' modify '||c.COLUMN_NAME||' default '||c.DATA_DEFAULT
from user_tab_columns c
where c.DATA_DEFAULT = ''' ''';
I'm either getting an SQL not properly terminated error or inconsistant datatype error on c.DATA_DEFAULT.
I'm sure the solution is rather logical, but it's baffling me in the early hours.
Many thanks in advance........
dklloyd
I want to create an SQL that will put the default values in one database into another. The trouble is that most of the rows have ' ' as a default value (quotes included).
The select statement so far goes like this:
select 'alter TABLE '||table_name||' modify '||c.COLUMN_NAME||' default '||c.DATA_DEFAULT
from user_tab_columns c
where c.DATA_DEFAULT = ''' ''';
I'm either getting an SQL not properly terminated error or inconsistant datatype error on c.DATA_DEFAULT.
I'm sure the solution is rather logical, but it's baffling me in the early hours.
Many thanks in advance........
dklloyd