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

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -