select * from ads_zzqlc_produce_detail cor where 1=1 and cor.factory_stage = 'XMA2' and cor.data_date = ( SELECT MAX(toString(data_date)) from ads_zzqlc_produce_detail cor where factory_stage = 'XMA2') 这样写没报错 —————————————————————— select * from ( select * from ads_zzqlc_produce_detail where 1=1 and cor.factory_stage = 'XMA2' and cor.data_date = ( SELECT MAX(toString(data_date)) from ads_zzqlc_produce_detail cor where factory_stage = 'XMA2'))
|