You run below script into magento root directory
Note:Firstly take backup of DB then execute this query
For All products
$storeId=Mage::app()->getStore()->getStoreId(); // Your store id
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
// For all products
$products = Mage::getModel('catalog/product')->getCollection();
$products->addStoreFilter();
$products->addAttributeToSelect('*');
foreach($products as $product)
{
$price=$product->setPrice(120);
Mage::app()->setCurrentStore($storeId);
$product->save();
}
?>
For specific products:
<?php
require_once 'app/Mage.php';
Mage::app('default');
$storeId=Mage::app()->getStore()->getStoreId(); // Your store id
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
$productIds = array(1,2,3,4,5); // pass products id
$products = Mage::getModel('catalog/product')->getCollection();
$products->addStoreFilter();
$products->addAttributeToSelect('*');
$products->addAttributeToFilter('entity_id', array('in' => $productIds));
foreach($products as $product)
{
$price=$product->setPrice(120);
Mage::app()->setCurrentStore($storeId);
$product->save();
}
?>