Листинг 2. Сортировка, запрос и выдача адреса IP.
SELECT CAST(A1 as varchar(3)) +`.`+ CAST(A2 as varchar(3))+`.`+
CAST(A3 as varchar(3)) +`.`+ CAST(A4 as varchar(3)) as IP_ADDR
FROM WebStats
WHERE A1=204 AND A2=56 AND A3=55 AND A4=28
ORDER BY A1, A2, A3, A4
Вернуться к статье
|