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

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -