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
Post a Comment