sql - UPDATE column where another column LIKE specific string -


i tried figure out how this, no luck, asking help...

i have table named products , need update in column names refresh_time rows "-295" in column named "ref"

i tried

update products set refresh_time = "2014-10-26 08:33:29" products.ref "295-" 

no luck..

any highly appreciated.. in advance.

you need wildcard in pattern. , use single quotes.

like '295-%'

http://www.w3schools.com/sql/sql_like.asp


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -