查询用户最近操作信息

SELECT
case_id,
a.user_name user_name,
dept_name,
temperature_forenoon,
temperature_afternoon,
health_symptom,
health_history,
health_infection,
health_suspected_infection,
health_hospital,
city,
address,
route_start,
route_start_time,
route_destination,
route_end_time,
route_cause,
route_traffic,
route_vehicle,
route_person,
city_been,
city_contact,
city_contact_person,
contact_hubei,
living_environment_hospital,
living_environment_symptom,
living_environment_infection,
living_environment_suspected_infection,
living_community_history,
living_community_suspected_infection,
together,
studying,
studying_info,
info,
a.create_time create_time,
qr_table
FROM
t_daily_update_info a
JOIN ( SELECT user_name, MAX( create_time ) create_time FROM t_daily_update_info WHERE user_name = 'test' ) b ON a.user_name = b.user_name
AND a.create_time = b.create_time

posted @ 2020-03-05 15:09  殇之弑梦  阅读(150)  评论(0编辑  收藏  举报