列名user_ids 类型text 数据有
[123, 234, 456]
[234, 456]
[123, 234]
[234]
[1,2,3,4]
怎么通过REGEXP匹配出数组中有234的数据:
[123, 234, 456]
[234, 456]
[123, 234]
[234]
用sql: select * from user where user_ids REGEXP '\\[\\s*(\\d+\\s*,\\s*)*234(\\s*,\\s*\\d+)*\\s*\\]';
列名user_ids 类型text 数据有
[123, 234, 456]
[234, 456]
[123, 234]
[234]
[1,2,3,4]
怎么通过REGEXP匹配出数组中有234的数据:
[123, 234, 456]
[234, 456]
[123, 234]
[234]
用sql: select * from user where user_ids REGEXP '\\[\\s*(\\d+\\s*,\\s*)*234(\\s*,\\s*\\d+)*\\s*\\]';