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!

setting smalldatetime column to NULL

Status
Not open for further replies.

varocho

Programmer
Dec 4, 2000
238
US
Using: System 11

A co-worker is trying to get her PERL script to UPDATE a record so a smalldatetime column is set to NULL, but not having any luck. Apparently a statement like

UPDATE table
SET smalldatetimeColumn = NULL
WHERE ...

doesn't work though it works fine in SQL Advantage. Is there any way to get the above statement to work in PERL? Is there some Sybase function to set a value to NULL?
 
hello,

how are you connecting to the database? are you using sybperl, dbi, or a sql block in perl?

q.
 
q,

Thanks for responding. My co-worker fixed the problem she was having (she just needed to check for a 1/1/1900 date being set in a form variable so this would end up being replaced with a NULL value).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top