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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does not accept null values

Status
Not open for further replies.

Niki_S

Programmer
Jun 4, 2021
232
LK
Code:
CREATE TABLE C:\Tempfiles\_DelDtl (nStylecode N(10),cAccountNo C(15),cContract C(15),Style C(50),cLotName C(5),cCategory C(15),nCiQty N(10),cShipFty C(5),cColorName C(50),;
cShipMode C(5),dEx_dte D(8),dindc_dte D(8),Destinatn C(50),cPoNo C(15),cSeason C(15),Delvr_Pcs N(10,1),nqty N(10),cStatus C(5))
This is how I create my table. When I run my code it says Delvr_Pcs does not accept null values.
How can I fix this?

Thank you
 
You write Delvr_Pcs N(10,1) NULLable ot Delvr_Pcs N(10,1) NULL to make it nullable.

Or you check how the nulls get in there and avoid them. In such a numeric field I would work with 0.0 as the default, not null.

Chriss
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top