table_activator->bo"/>

Mysql left join查询方法

Published
2022-04-19
浏览次数 :  38

$books = $wpdb->get_results("SELECT book.*,book_shelf.shelf_name FROM " . $this->table_activator->booktable . " as book LEFT JOIN " . $this->table_activator->shelftable . " as book_shelf ON book.shelf_id = book_shelf.id ORDER BY id DESC");

  • 标签1
  • 标签1
  • 标签1
Top