Sign in to follow this  
Followers 0
ChrisL

Any SQLITE Guru's around?

3 posts in this topic

I've got a query which doesn't work.

UPDATE PrintsCD SET p6x4 = p6x4 +1 Where (Select ID from IMAGETABLE WHERE isPrintable='True');

The items which "isPrintable" equals False in IMAGETABLE still get updated in PrintsCD, any ideas please?

Share this post


Link to post
Share on other sites



You're saying: Where {1,2,3,4,5,6}. A list of IDs is forced to evaluate to true/false. It should be more like:

UPDATE PrintsCD SET p6x4 = p6x4 +1 Where ID IN (Select ID from IMAGETABLE WHERE isPrintable='True');

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0