Is there a way to use the JSON_ARRAY
in WHERE..IN
clause?
For example, the following is the JSON_ARRAY
.
SET @codes := JSON_ARRAY('CA' , 'NY' , 'TX');
And I need to do something like the following:
SELECT * FROM `state` WHERE `code` IN (@codes);