mysql - add the same thing to a table column by sql command -


there table named test. in it. there columns this:

001.jpg   ... 999.jpg 

now want use sql command add url before them. http://www.example.com/xxx/001.jpg.....is there way this? thank you.

supposing field called url, simple update query do:

update test set url = concat("http://", url); 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -