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# - PInvoke of NetUserAdd returns 24 -

NHibernate Passing Session to the Repository -

objective c - Mouse events for an NSSegmentedCell subclass? -