Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a new table

Status
Not open for further replies.

t16turbo

Programmer
Mar 22, 2005
315
0
0
GB
Hi all,

not sure if this is the correct forum to use, but I have created a simple table in sybase.

I'm using a Lotus tool to populate the table with data from a Notes datasource.
The process fails because it is trying to insert null values into sybase.
My SQL is as follows:

CREATE TABLE EnhAudit
(ProjectNo CHAR(8),
CreatedDate DATETIME,
FieldName CHAR(35),
OldValue CHAR(35),
NEWValue CHAR(35),
CreatedBy CHAR(40))

how can I instruct it to accept NULL values in the OldValue field?

thanks in advance..
 
Hi,
Change your table creation script as follows

CREATE TABLE EnhAudit
(ProjectNo CHAR(8),
CreatedDate DATETIME,
FieldName CHAR(35),
OldValue CHAR(35) null,
NEWValue CHAR(35),
CreatedBy CHAR(40))

Regards
Gopal
:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top