Home >Backend Development >PHP Tutorial >帮忙看个SQL有关问题
帮忙看个SQL问题
<br />SELECT ornamentation_images.ismark ismark,ornamentation_images.width width,ornamentation_images.height height,users.nickname name,ornamentations.id id,ornamentations.image_name image_name,ornamentations.image_url image_url,ornamentations.add_author add_author,ornamentations.browse_real_cnt browse_real_cnt,ornamentations.comnum comnum,users.head head,users.comnum unreadFROM `ornamentation_images` <br />LEFT JOIN users on ornamentation_images.add_author=users.id <br />LEFT JOIN ornamentations on ornamentation_images.ornamentation_id=ornamentations.id <br />WHERE ( ornamentations.enable = 0 ) AND ( ornamentations.checkstatus = 2 ) <br /> ORDER BY ornamentations.id desc LIMIT 0,5<br />