Created
November 28, 2008 13:40
-
-
Save tomlea/29986 to your computer and use it in GitHub Desktop.
This file contains 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 @session := COALESCE(max(session), 0) + 1 from product_invalidations; | |
insert product_invalidations(product_id, session) select p.id, @session from products p inner join product_types pt on pt.id = p.product_type_id where pt.name = 'mobile-phones'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment