SELECT id,
IF((SELECT COUNT(*) from devices where devices.name = call_list.num) = 0, call_list.num, call_list.num2) "client_num",
FROM call_list;
select
call_list.id,
t.count
from call_list
join (select count(*) as count, devices.name from devices group by devices.name) as t
on t.name = call_list.num;
TRUNCATE TABLE tbl RESTART IDENTITY;
dka@desktop ~ % http -vv https://www.banket-valencia.ru
GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Host: www.banket-valencia.ru
User-Agent: HTTPie/3.2.1
http: error: SSLError: HTTPSConnectionPool(host='www.banket-valencia.ru', port=443): Max retries exceeded with url: / (Caused by SSLError(CertificateError("hostname 'www.banket-valencia.ru' doesn't match 'banket-valencia.ru'"))) while doing a GET request to URL: https://www.banket-valencia.ru/
Caused by SSLError(CertificateError("hostname 'www.banket-valencia.ru' doesn't match 'banket-valencia.ru'")))
server {
listen 80;
server_name www.example.com;
return 301 $scheme://example.com$request_uri;
}
Скачал - распокавал - запустил