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

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -