sql - MySQL ReGex statement -
i have never come across regex in mysql, in column have on 500 different server versions. possible fetch before forward slash can detect common servers filtering out versions?
microsoft-iis/7.5 microsoft-iis/6.0 apache/2.2.24 (unix) apache/2.2.15 (cento apache/1.3.42 (unix) apache/2.2.22 (ubunt resin/3.0.23 apache/2.2.0 (linux/
here,
select distinct substring(version,1,locate('/', version)-1) tablename
because of distinct
, unique rows displayed.
Comments
Post a Comment