Need a PHP MYSQL query that will copy data from one column into another while stripping it of numbers before placing into the new column. Tried the following:
$sql = "SELECT time FROM `arms`";
$results = $conn->query($sql);
$sql = "update `arms` set colB=preg_replace("/[0-9]/", "", 'colA')";
$results = $conn->query($sql);
Also tried
$sql = "update arms_ms set colB= " .preg_replace("/[0-9]/", "", colA). "";
Also tried
$sql = "update arms_ms set colB= colA REGEXP /^([^0-9]*)$/;
Have even tried
$sql = "update arms_ms set colB= common_schema.replace_all(colA,'0123456789','') ";
None of the above work.