Create Custom Galleries - default (Goup params)

Ryba
Posts: 111
Joined: Tue Jan 15, 2013 3:55 pm

Re: Create Custom Galleries - default (Goup params)

Post 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
)
что не так?
SmartCJ Pro V 1.51 Build 201402011516
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Create Custom Galleries - default (Goup params)

Post by admin »

Ок, скиньте плз PMA и ИД галеры у которой например неверный кроп профайл.
Don't forget to run script update
Ryba
Posts: 111
Joined: Tue Jan 15, 2013 3:55 pm

Re: Create Custom Galleries - default (Goup params)

Post by Ryba »

В личке.
SmartCJ Pro V 1.51 Build 201402011516
Ryba
Posts: 111
Joined: Tue Jan 15, 2013 3:55 pm

Re: Create Custom Galleries - default (Goup params)

Post 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))
SmartCJ Pro V 1.51 Build 201402011516
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Create Custom Galleries - default (Goup params)

Post by admin »

Ок, спасибо.
Don't forget to run script update
Post Reply