ThinkPHP5 DB查询数据时把时间戳格式字段改为日期格式

    科技2025-10-17  16

    $weight_data = Db::name('remote_detection') ->where($where) ->field("item_name,first_check_weight,second_check_weight,from_unixtime(create_time,'%Y-%m-%d') as time") ->select();
    Processed: 0.010, SQL: 8