![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, Would like to know the reason for the behaviour for SA table column created from select into with a variable has not null constraint by default? set temporary option Allow_Nulls_By_Default = 'ON' set temporary option Non_Ansi_Null_Varchar = 'ON' create table iqtab(c_rowid integer) commit create variable @varclob_retest long varchar set @varclob_retest = '' insert into iqtab values (1) drop table iqtab_new select *,@varclob_retest into iqtab_new from iqtab-- From dbtran sql file, sa creates the table with the definition below: create table DBA.saiqtab_new( c_rowid integer null, @varclob_saretest long varchar not null, ) Thank you, Aparna |
![]() |
| Thread Tools | |
| Display Modes | |
| |