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
Set a negative column value to 0 in SQL Server
Oracle forms 10g
Oracle 11g Question
asp.net ' I need to write a long sql statement and i'm being cut off after the first line with a double qoute
to optimise the case statement
Sharepoint subsite permissions
embeded video to sharepoint?
Naming of data between OSI layers
How to view .avi files
update user name change from AD to sharepoint 2007