I've got a particular need to copy data from catalog_product_entity_varchar into catalog_product_entity_decimal for a particular attribute in Magento
I'm currently running a script in PHP with the following code:
$sql1 = (" Insert into `catalog_product_entity_varchar` (`entity_type_id`,`attribute_id`,`store_id`,`entity_id`,`value`)
select `entity_type_id`,`attribute_id`,`store_id`,`entity_id`,`value` from `catalog_product_entity_decimal`
where `attribute_id` = '230' ");
mysql_query($sql1);
$sql2 = ("DELETE FROM `catalog_product_entity_decimal` where `attribute_id` = '230' ");
mysql_query($sql2);
the statements work if entered directly in MySQL, however when executed via PHP they fail - am I missing something?