This one has me stumpped.
I have 2 tables as so:
METERS
id | startTime
READINGS
id | meter_id | readingTime
What I want to do is update the meters.startTime
to the lowest matching readings.readingTime
in 1 sql query.
How do I do this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…