function format($size){
$sizeName = array( " B", " KB", " MB", " GB", " TB", " PB", " EB", " ZB", " YB" );
return $size
? round($size/pow(1000, ($i = floor(log($size, 1000)))), 2) . $sizeName[$i]
: '0' . $sizeName[0];
}
SELECT dstnum AS t2dstnum, MAX(calldate) OVER (PARTITION BY dstnum) AS t2lastcall FROM cdr WHERE route = "out" GROUP BY dstnum
SELECT DISTINCT dstnum AS t2dstnum, MAX(calldate) OVER (PARTITION BY dstnum) AS t2lastcall FROM cdr WHERE route = "out"
SELECT DISTINCT(dstnum) AS t2dstnum, MAX(calldate) OVER (PARTITION BY dstnum) AS t2lastcall FROM cdr WHERE route = "out"
GROUP_CONCAT(DISTINCT mmpv.id) ids
значение fumvi.mmpv_id должно быть одно и тоже для определенного количества id
SELECT DISTINCT(dstnum) AS t2dstnum, MAX(calldate) OVER (PARTITION BY dstnum) AS t2lastcall FROM cdr WHERE route = "out"
Поэтому лучше так:
xargs -a "файл со списком" -d "\n" mkdir