Search
 
SCRIPT & CODE EXAMPLE
 

SQL

woocommerce mysql price table

//for Regular Price
UPDATE wp_postmeta 
SET meta_value = diff_price_value 
WHERE post_id = variation_id AND meta_key = '_regular_price';

//for Price
UPDATE wp_postmeta 
SET meta_value = price_value 
WHERE post_id = variation_id AND meta_key = '_price';

//for Sale Price
UPDATE wp_postmeta 
SET meta_value = price_value 
WHERE post_id = variation_id AND meta_key = '_sale_price';
Comment

PREVIOUS NEXT
Code Example
Sql :: oracle current sequence value 
Sql :: sql query length of string the longest 
Sql :: mysql with rollup 
Sql :: clear screen command in psql 
Sql :: table drop if exist sql server 
Sql :: create sqlite database in laravel 
Sql :: view linked servers sql 
Sql :: adding a check statement in sql 
Sql :: select tables with name like mysql 
Sql :: group_concat order by 
Sql :: how to fetch alternate records from two tables 
Sql :: sous requete sql 
Sql :: sql alchemy with azuresql server 
Sql :: how to rename column in sql 
Sql :: HOW TO FIND MEDIAN IN SQL FOR BOTH IDD AND EVEN 
Sql :: oracle show execution plan 
Sql :: mysql how to subtract dates 
Sql :: oracle current date minus 1 day 
Sql :: where date major today mysql 
Sql :: How to get todays date and current time in mysql 
Sql :: mysqli_connect using prepare statement 
Sql :: id increment ms sql server 
Sql :: how to add unique key constraint in mysql 
Sql :: clone table structure mysql 
Sql :: mysql get all tables row count 
Sql :: postgres set default schema 
Sql :: postgresql change default value 
Sql :: add column with foreign key constraint sql server 
Sql :: get comma separated values in sql server 
Sql :: Write a query to create an empty table from an existing table? 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =