Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
про функцию range я не знал...спасибо=)
вот как бы теперь все это в мускульную таблицу запихать в один подход..
CREATE TABLE IF NOT EXISTS `alphabet` (
`alpha` varchar(1) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO `alphabet` (`alpha`) VALUES
('a'), ('b'), ('c'), ('d'), ('e'), ('f'), ('g'), ('h'), ('i'), ('j'), ('k'), ('l'), ('m'), ('n'), ('o'), ('p'), ('q'), ('r'), ('s'), ('t'), ('u'), ('v'), ('w'), ('x'), ('y'), ('z'), ('1'), ('2'), ('3'), ('4'), ('5'), ('6'), ('7'), ('8'), ('9'), ('0');
CREATE TABLE IF NOT EXISTS `domain` (
`domain` varchar(10) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO domain (
SELECT CONCAT(t1.alpha, t2.alpha, t3.alpha, t4.alpha, '.ru') domain
FROM alphabet t1, alphabet t2, alphabet t3, alphabet t4
);
SELECT domain
FROM domain
WHERE domain REGEXP '[0-9]{4}\.ru'
SELECT CONCAT(t1.alpha, t2.alpha, t3.alpha, t4.alpha, '.ru') domain
FROM alphabet t1, alphabet t2, alphabet t3, alphabet t4
WHERE CONCAT(t1.alpha, t2.alpha, t3.alpha, t4.alpha, '.ru') REGEXP '[0-9]{4}\.ru'