question

Ajay 1 avatar image
Ajay 1 asked

Update column value by Infinite Date value

Hi, I have one column and i need to update that column based on some condition. Suppose if value = 0 then i need to update that column with never expired date means the infinite date. I dont have any clue for this. Please help me.

Thanks Ajay

queryupdate
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Squirrel 1 avatar image
Squirrel 1 answered
infinite date ? i suppose you can use 9999-12-31. When that date reach and it didn't expired, let me know ;) Alternatively you can use NULL value. Anything when compare with NULL is false. Depending on your requirement and scenario, you might need to handle NULL specifically in your code
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.