0

I have a large mysql database, so when i'm trying to set Display Out of Stock Products options in NO, i get php time execution error. Does anybody know native mysql query or some another trick to change this options? Please help. It's a shared hosting so i can't increase execution time of script

4

1 回答 1

1

您可以对列表进行分页并使用 MySQLLIMIT <start>,<length>选项。

例子:

SELECT * FROM table WHERE (1=1) LIMIT 0, 100;

以上将选择前 100 个项目。对于下一页,将第一个值增加 100,依此类推,直到没有更多行。

于 2013-10-14T13:21:57.317 回答