Re: Default Value



On 30 Mar, 12:19, Frank van Bortel <frank.van.bor...@xxxxxxxxx> wrote:
web.Hunter wrote:
Hi, I've a problem with default value of integer data type: my
software work fine with oracle version 8, but fail with 11g version.
The problem is on sql insert command because are often omitted some
columns for use the default value. If the column omitted has a integer
data type, on oracle 8 the command is succesful executed; viceversa
the command faild on 11g oracle version: the response message return
an unexpected null value on a not-null column. I repeat: Only on
integer data type column.

I suppose that there is a configuration value that is possible to
modified but I don't know what and here.

If table definitions are equal (especially the
number column - integers are numbers); then this should
work:

insert into a values (col_1, col_2,,col4);

col_3 being you number column:

...
col_3   NUMBER NOT NULL default 42,
col_4 ...

If not, 11G evaluates in a different manner (table definition
against statement) than 8 did (given values, including defaults
on table).
If not, you may have found a a bug. Make sure you test this
against the latest patch version available
--

Regards,
Frank van Bortel

Top-posting in UseNet newsgroups is one way to shut me up

Hi, Frank
I've send more details to Helma
.



Relevant Pages

  • Default Value
    ... I've a problem with default value of integer data type: ... software work fine with oracle version 8, ... The problem is on sql insert command because are often omitted some ...
    (comp.databases.oracle.server)
  • Re: Default Value
    ... software work fine with oracle version 8, ... The problem is on sql insert command because are often omitted some ... data type, on oracle 8 the command is succesful executed; ...
    (comp.databases.oracle.server)
  • Re: Default Value
    ... software work fine with oracle version 8, ... The problem is on sql insert command because are often omitted some ... data type, on oracle 8 the command is succesful executed; ... integer data type column. ...
    (comp.databases.oracle.server)
  • Re: Need help importing / exporting a schema
    ... command to dump the ... there is no such "secret command". ... You should NOT extrapolate previous experience on other DBs to Oracle. ... Oracle supports many more different data type than some/many/most other ...
    (comp.databases.oracle.misc)
  • SUMMARY: sudo version 1.6.7p5 : using -H -u options on Solaris 8
    ... Many thanks to those that responded, as expected all responses were helpful. ... This will allow you to do the thing that the user oracle requires while also ... designated in the sudoers file who requires to use the command, ... there is a CLASSPATH variable set which, as the oracle user I can see by ...
    (SunManagers)