up£¡£¡£¡£¡ ¶Ô Ó¦¸Ã¾ÍÕâÑùµÄ ²»¹ýÈç¹ûÊý¾ÝÁ¿´óµÄ»°¿ÉÒÔÓÃexists update table_name a set name='x' where exists ( select 1 from ( select max(datetime) from table_name ) b where b.datetime=a.datetime );
update tble set name='x' where not exists (select 1 from tbl b where b.ttime<tble.ttime);
˼·£¬create table_name as select max(datetime) as datetime from table_name È»ºóupdate table_name set name='x' where datetime in ÉÏÃæÄǸö±í; È»ºódropÄǸö±íÊÔÊÔ ÊÔÁËһϲ»Ö§³Ö£¬×Ö²éѯÓÃÁÙ