I have a column that contains links. The problem is that the titles of the links are in the same column, so it looks like this: linktitle|-|linkurl I want l
linktitle|-|linkurl
UPDATE tablename SET linktitle = SUBSTRING_INDEX(link , '|-|', 1 ) linkurl = SUBSTRING_INDEX(link , '|-|', -1 )