item_thumb_view.sql 240 B

1234567891011121314
  1. create or replace view item_thumb_view as
  2. select
  3. dbr_item.*, bd_file_url
  4. from
  5. dbr_item
  6. left join
  7. ( select
  8. media_id,
  9. bd_file_url
  10. from
  11. dbr_media_bd
  12. where image_type = 'thumb'
  13. ) as com
  14. on com.media_id = dbr_item.media_id