mrherman Posted October 22, 2008 Share Posted October 22, 2008 This attempt throws an error, but how close am I to getting something like this to work? (using 5.1) Thanks. SET @myvar = '( "1021X", "2020X", "2023X", "2024X" )' UPDATE mytable SET myfield = "Y" WHERE myvalue IN @myvar ; Quote Link to comment https://forums.phpfreaks.com/topic/129564-mysql-user-def-variable-can-i-do-something-like-this/ Share on other sites More sharing options...
fenway Posted October 22, 2008 Share Posted October 22, 2008 You have some quoting issues. Quote Link to comment https://forums.phpfreaks.com/topic/129564-mysql-user-def-variable-can-i-do-something-like-this/#findComment-672045 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.