本文介绍了更新现有列所需的更新查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将一个列的值替换为另一个。


示例:


否Update_count Update_time

1 0 2015-02-02 12:23:24

1 0 2015-02-02 12:23:24

1 0 2015-02-02 12 :24:25

对于特定的No和更新计数,时间应该相同,在这种情况下我需要设置Max(update_time)作为所有3条记录的时间,可以有人请帮助。


结果应该是这样的:


没有Update_count Update_time

1 0 2015-02- 02 12:24:25

1 0 2015-02-02 12:24:25

1 0 2015-02-02 12:24:25

I need to replace one value of a column to another.

Example :

No Update_count Update_time
1 0 2015-02-02 12:23:24
1 0 2015-02-02 12:23:24
1 0 2015-02-02 12:24:25

For a particular No and update count the time should be same , in this case i need to set Max(update_time) as the time for all 3 records , Can someone help please.

Result should be like this :

No Update_count Update_time
1 0 2015-02-02 12:24:25
1 0 2015-02-02 12:24:25
1 0 2015-02-02 12:24:25

推荐答案




这篇关于更新现有列所需的更新查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 12:01