php - Mysql update field with other field -
it possible execute query
update `project` set image='b/' `id_account` '.png' ?
id int(10) no pri auto_increment id_account varchar(100) no image varchar(100) no i need add value of field id_account image
you can use + operator concatenate values in sql:
update `project` set `image` = 'b/' + `id_account` + '.png'
Comments
Post a Comment