Home > Blockchain >  How to include additional conditions inside a main WHERE clause? (like an if inside a higher-level i
How to include additional conditions inside a main WHERE clause? (like an if inside a higher-level i

Time:02-03

I have a table aus_woocommerce_order_itemmeta with the following schema:

aus_woocommerce_order_itemmeta

How can I create a query that yields the following logic?

SELECT * FROM aus_woocommerce_order_itemmeta WHERE order_item_id  = 660
    /* And only from those items, the ones with order_item_id = 660
    SELECT the rows that meet any of the following conditions: */
meta_key LIKE "           
  •  Tags:  
  • Related