【问题标题】:i want to filter out those the same display data in my data table我想在我的数据表中过滤掉那些相同的显示数据
【发布时间】:2019-02-01 12:42:07
【问题描述】:

i want to filter out those the same records

我想从数据表中归档记录并只显示一条记录。

【问题讨论】:

  • 为了将来参考,在 Stack Overflow 上,你不能只是重复你的问题三遍然后链接到一个图像。
  • 说三遍“我想 X”不会让 X 发生。这不是魔术。

标签: javascript php jquery ajax laravel-5


【解决方案1】:

您可以在查询中使用distinct() 方法。例如,$users = DB::table('users')->distinct()->get(); 有关详细信息,请参阅selects 上的文档。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-24
    • 2018-02-01
    • 1970-01-01
    • 2019-12-13
    • 1970-01-01
    相关资源
    最近更新 更多