='y' or reedim_status is null) and user_id='$user_id1'";if($retval ) die('Could not get data: ' . mysql_error());$i=0;
while($row = mysql_fetch_assoc($retval='' ORDER BY profit DE
我遇到的问题是在WHERE IN中使用返回的索引数组,这根本不起作用。据我所知,这是一个简单的格式化问题,其中MySQL需要一个()封装,而JSON数组是一个[]封装。例如: SELECT COUNT(si.ID) AS item_count, JSON_ARRAYAGG(si.ID) AS item_array
FROM sourcing_item si; 返回:7, [1,2,3,4,5,6,7] 我需要做的是编写一个复杂的嵌套查询,允许选择JSON_ARRAYAGG结果中的记录IN