Title: SQL statement for upsell_ids
Last modified: July 6, 2020

---

# SQL statement for upsell_ids

 *  Resolved [3hr3](https://wordpress.org/support/users/3hr3/)
 * (@3hr3)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/sql-statement-for-upsell_ids/)
 * Hello everybody,
 * I would need an SQL statement with which I can add a linked product -> upsell_ids
   to all articles that have a specific article number part (e.g. * REF-315 *). 
   Maybe someone has already written this statement / in use or can I spell it out?
 * Grateful for help
    Chriss

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Hannah S.L.](https://wordpress.org/support/users/fernashes/)
 * (@fernashes)
 * Automattic Happiness Engineer
 * [5 years, 11 months ago](https://wordpress.org/support/topic/sql-statement-for-upsell_ids/#post-13085215)
 * This is a fairly complex development topic. I’m going to leave it open for a 
   bit to see if anyone is able to chime in to help you out.
 * I can also recommend the following places for more development-oriented questions:
    1. WooCommerce Slack Community: [https://woocommerce.com/community-slack/](https://woocommerce.com/community-slack/)
    2. WooCommerce FB group: [https://www.facebook.com/groups/advanced.woocommerce/](https://www.facebook.com/groups/advanced.woocommerce/)
 *  Plugin Support [Thu P. a11n](https://wordpress.org/support/users/thup90/)
 * (@thup90)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/sql-statement-for-upsell_ids/#post-13130143)
 * Hi there,
 * I hope you found the previous reply helpful. We haven’t heard back from you in
   a while, so I’m going to mark this as resolved – if you have any further questions,
   you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘SQL statement for upsell_ids’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Thu P. a11n](https://wordpress.org/support/users/thup90/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/sql-statement-for-upsell_ids/#post-13130143)
 * Status: resolved