Re: using the same field to be set in the update query and in the where clause

From: Peter H. Coffin <hellsop_at_ninehells.com>
Date: Thu, 9 Mar 2017 15:24:48 -0600
Message-ID: <slrnoc3i10.t3q.hellsop_at_nibelheim.ninehells.com>


On Thu, 9 Mar 2017 09:47:29 -0800 (PST), kushal bhattacharya wrote:

> hi yes i am keeping timestamp which changes on updation of therow

If you only want to update the timestamp, you do that by just updating the timestamp.

UPDATE `table` SET `updated_tmstp` = current_timestamp ;

-- 
"25 grams of wafers and 20 ml of wine undergo transubstantiation and
 become the flesh and blood of our Lord. How many Joules of heat are
 released by the transformation?"   --Theological Physics exam, 1997
Received on Thu Mar 09 2017 - 22:24:48 CET

Original text of this message