Page 2 of 2

Re: Create Custom Galleries - default (Goup params)

Posted: Sun Jun 09, 2013 10:10 am
by Ryba
Делаю запрос: select content_id from rot_content where crop_profile_id = 1
Ответ:
Отображает строки 0 - 29 ( 396 всего, Запрос занял 0.4061 сек.)
SELECT content_id
FROM rot_content
WHERE crop_profile_id =1
LIMIT 0 , 30
Делаю: update rot_galleries set status = 12 where 'rot_content_id' in (select content_id from rot_content where crop_profile_id = 1 )
Ответ:
Затронуто 0 строк. ( Запрос занял 0.3006 сек. )
UPDATE rot_galleries SET STATUS =12 WHERE 'rot_content_id' IN (
SELECT content_id
FROM rot_content
WHERE crop_profile_id =1
)
что не так?

Re: Create Custom Galleries - default (Goup params)

Posted: Mon Jun 10, 2013 6:37 am
by admin
Ок, скиньте плз PMA и ИД галеры у которой например неверный кроп профайл.

Re: Create Custom Galleries - default (Goup params)

Posted: Mon Jun 10, 2013 1:36 pm
by Ryba
В личке.

Re: Create Custom Galleries - default (Goup params)

Posted: Mon Jun 10, 2013 2:26 pm
by Ryba
Спасибо, решено:
update rot_galleries set status = 10 where gallery_md5 in (select gallery_md5 from rot_gallery_info where rot_content_id in (SELECT content_id FROM `rot_content` WHERE crop_profile_id = 1))

Re: Create Custom Galleries - default (Goup params)

Posted: Mon Jun 10, 2013 3:05 pm
by admin
Ок, спасибо.