When the two tables are joined to query the data, the ranking will be affected by the page, and the ranking will only be performed on the current page. how can this problem be solved?
When the two tables are joined to query the data, the ranking will be affected by the page, and the ranking will only be performed on the current page. how can this problem be solved?
Reply content:
When the two tables are joined to query the data, the ranking will be affected by the page, and the ranking will only be performed on the current page. how can this problem be solved?
The total_bean field is added to the oc_member table and is updated at any time.
Create a View. because the SQL statements are complex and the TP support is poor, make the complex SQL statements into a view, simplify the SQL statements executed in the TP, and then obtain the results through the view query in the TP.
$ Model = D ("BlogView ");
$ Model-> where ($ where)-> page ($ page, $ end)-> select ();