oracle11g - update a column based on whether another column was updated -


i have 2 columns in table -

column_1

last_update_date

so when column_1 updated, need update last_update_date. how should write update query? i'm using oracle database.

update table_name    set column_1 = 'column_1_value',         last_update_date = sysdate 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -