SJames Posted September 1, 2007 Share Posted September 1, 2007 Is there a way to say the equivelent of: UPDATE table SET field='value' WHERE field='value' AND field2='value' What I'm asking is if there's a way to say AND, near the end. Quote Link to comment https://forums.phpfreaks.com/topic/67548-mysql-update-where-and/ Share on other sites More sharing options...
hostfreak Posted September 1, 2007 Share Posted September 1, 2007 I don't fully understand your question. Are you asking if it is possible to do something like you posted? If so, yes. AND is a mysql operator http://dev.mysql.com/doc/refman/4.1/en/non-typed-operators.html . Therefore, your code should work fine as it is now. Quote Link to comment https://forums.phpfreaks.com/topic/67548-mysql-update-where-and/#findComment-339249 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.