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 ; 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. 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
Archived
This topic is now archived and is closed to further replies.