string concatenation - how to concatenate two column values and store in a another column mysql php -



string concatenation - how to concatenate two column values and store in a another column mysql php -

i want insert 2 column values(year + id(primarykey-autoin) = srf) in 1 column

i can able concatenate values using next code select concat(year, id) srf billing_details dont know how insert values in column namely "srf".

updated question:

now have used next code

$sqlselect = "update billing_details set srf = concat(year, id)";

it returns "null"

update billing_details set srf = concat(year, id)

mysql string-concatenation

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -