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 -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -