db->from("table"); $th-6ren">
gpt4 book ai didi

mysql - Codeigniter - 对从 MySQL 中检索到的值进行排序

转载 作者:可可西里 更新时间:2023-11-01 07:12:12 25 4
gpt4 key购买 nike

是否可以对从 MySQL 检索到的值进行排序,比如降序 id

谢谢。

最佳答案

给你...

$this->db->select("*");
$this->db->from("table");
$this->db->order_by("id", "desc");
$this->db->get();

阅读更多信息 codeigniter documentation for active record class .

关于mysql - Codeigniter - 对从 MySQL 中检索到的值进行排序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3530053/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com