Microsoft
Software
Hardware
Network
Question : disable default "CURRENT_TIMESTAMP" field when executing UPDATE query
Hi,
I have a field called datetime that's set to default "CURRENT_TIMESTAMP" and when I execute an "UPDATE" query the field datetime get's the current time...is there someway to disabled this while I'm running the "Update" query?
I need to update some records and it's affecting the datetime field.
update my_t set name='John' where name='Johnny' -> after running this the field datetime gets the current time which is not good.
Cheers!
Answer : disable default "CURRENT_TIMESTAMP" field when executing UPDATE query
in the update query, if you are not specifying the datetime field with some value, then pass the current value itself
something like :
update <table> set <field1> = <yourvalue> , <datetime field> = <datetime field> where....
Random Solutions
Loading Multiple RSS feeds into specific Divs
Best free / low-cost Syslog server for Windows?
Mac OS 10.4.10 into Intel Core2Duo Desktop PC
Batch File Script Issue
Crystal 10 & Access 2007 Issue
Need help inserting a pdf into the body of a email in outlook 2003
is there anyway of changing the onclick message?
how to bypass email scanner?
Would you support the Japanese putting up a memorial at Pearl Harbor?
SCCM mandatory assignment