Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/string/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
String 将组_concat中的mysql字符串拆分为数组以在()函数中使用_String_Split_Group Concat - Fatal编程技术网

String 将组_concat中的mysql字符串拆分为数组以在()函数中使用

String 将组_concat中的mysql字符串拆分为数组以在()函数中使用,string,split,group-concat,String,Split,Group Concat,将组_concat函数中的字符串拆分为数组,以便在mysql的函数中使用。但不要在集合中使用find_。让我知道另一种方法 虽然在_集合中查找_是最好的功能,但如果您想尝试其他技术,请尝试以下方法: SELECT * FROM `table_name` WHERE CONCAT(',', field_name, ',') LIKE '%,".(int)$value_to_find.",%'");

将组_concat函数中的字符串拆分为数组,以便在mysql的函数中使用。但不要在集合中使用find_。让我知道另一种方法

虽然在_集合中查找_是最好的功能,但如果您想尝试其他技术,请尝试以下方法:

SELECT * FROM `table_name` WHERE 
CONCAT(',', field_name, ',') LIKE '%,".(int)$value_to_find.",%'");