I have image data stored in a longtext column in table A and I want to copy it and update the same column but in table B.
$sql = "SELECT img FROM table A