According to the result of the query such as I think
The select img, img_t img_s from tablename where imgtype='ybj' and houseid=112
If there is a record, access to the inside of the
If there is no record with this query
The select img, img_t img_s from tablename where imgtype='typeimg' and houseid=112
Which can use directly in the SQL query to get the final result, I do not know how to implement, please tall person to give directions, thank!
CodePudding user response:
The problem yesterday? Either you post some test data, and then set forth the expectation result, let the others will help you,
CodePudding user response: