String manipulation in MySql -


I am using mysql in a field I have inserted strings like string 1 :: string 2: now i Only want to get the second string, can anyone help me in this, thanks in advance

  SELECT SUBSTRING_INDEX ('string1 :: string2', '::', -1)  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -