Hi Machiel, all!
machiel.richards wrote: > Hi All > > [[...]] > > What the Oracle guys found was that some of the fields were blank even > though the fields were configured as not nullable. > > I found that where this is the case, the users entered a blank space > which is then counted as a character and is thus not null. > > This is causing all kinds of havoc for them as Oracle apparently still > sees this as nulls. In SQL, both an empty string "" and a string with just a blank " " are well-defined values, different from the unknown NULL. AFAIR, Oracle had a tradition of treating empty and/or blank strings as NULL. I don't know whether that still holds, and whether it can be influenced by some setting. Which value would be used on the Oracle side for such fields? You could always import into a stage table on the Oracle side which allows NULL, then update to some non-NULL default value, then transfer into the final one. Jörg -- Joerg Bruehe, MySQL Build Team, joerg.bru...@sun.com Sun Microsystems GmbH, Komturstraße 18a, D-12099 Berlin Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Wolf Frenkel Vorsitzender des Aufsichtsrates: Martin Haering Muenchen: HRB161028 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/mysql?unsub=arch...@jab.org