How to concatenate text on existing database entry?
- by Starx
I have a table, whose fields are
id, name, link
the link holds the name of the page like "link" = "index.php". Now I want to update this field
and add "page=" in front of "index.php". Using this method I would like to update every entry in my table.
My desired SQL syntax need to be something like this
UPDATE mytable set link= 'page=' + <existing value of link> WHERE 1;
I am using 'WHERE 1;' to denote every row.
Anyone know how to accomplish this?