concatenation - MYSQL Concat not working -


update profile set favourties=concat(favourties,"123") id=1

i want append 123 in favourties if default value of favourties set null query not work. query if favourties set null , append 123 it

update profile set favourties=concat(ifnull(favourties, ''),"123") id=1 

Comments

Popular posts from this blog

mysql - How to insert just year and month into date field? -

c# - Detect changes in ObjectSet in Entity Framework 4.0? -