Last active
September 6, 2019 22:58
-
-
Save TrywaR/ccc59f345499173589f22af2928a01d4 to your computer and use it in GitHub Desktop.
Такая хрень бывает, когда опций много, они создаются автоматически при парсинге, по этому бывают дубли, вот эти дубли и объединяем...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Вытаскивание из базы | |
SELECT * FROM `modx_ms2_product_options` WHERE `key` = 'need_key' | |
# Поиск дублирующихся значений, мб разные и нужно что то с ними делать >.< | |
SELECT * FROM `modx_ms2_product_options` WHERE (`value` != '' AND `key` = 'key_from') AND (`value` != '' AND `key` = 'key_to') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment