新手求教,mysql查询序列化存储的数组的问题? 本帖最后由 dancer3319 于 2012-07-31 17:49:59 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 where find_in_set(12,'12,18,128,158') mysql> select find_in_set(12,'12,18,128,158');+---------------------------------+| find_in_set(12,'12,18,128,158') |+---------------------------------+| 1 |+---------------------------------+1 row in set (0.01 sec) mysql> select find_in_set(12,'128,18,12,158');+---------------------------------+| find_in_set(12,'128,18,12,158') |+---------------------------------+| 3 |+---------------------------------+1 row in set (0.01 sec) mysql> select find_in_set(12,'128,18,13,158');+---------------------------------+| find_in_set(12,'128,18,13,158') |+---------------------------------+| 0 |+---------------------------------+1 row in set (0.00 sec)if find_in_set (...) >0 then exist else not exist. 如何一条sql关联查出所需数据,详细如下 数据插入不到数据库 mysql_query 使 C++ 程序崩溃,求高人指点 有两种应用情况求SQL语句。 mysql创建表的字段 默认为 0值 mysql高手请给点建议--在线等 我安装的是mysql5.0,我用mysqlcc 工具创建了一个表,但添加记录时出错。 我的查询条件应该怎么写?急急急~~~在线等~~~!! 请问MYSQL可以支持哪些数据库文件或表格的导入? mysql与delphi6中的DbExpress能进行远程连接吗(大哥们帮帮忙,我的十分感谢) MYSQL报08S01的错误 利用游标更新表,效率问题,急!!!!
+---------------------------------+
| find_in_set(12,'12,18,128,158') |
+---------------------------------+
| 1 |
+---------------------------------+
1 row in set (0.01 sec)
mysql> select find_in_set(12,'128,18,12,158');
+---------------------------------+
| find_in_set(12,'128,18,12,158') |
+---------------------------------+
| 3 |
+---------------------------------+
1 row in set (0.01 sec)
mysql> select find_in_set(12,'128,18,13,158');
+---------------------------------+
| find_in_set(12,'128,18,13,158') |
+---------------------------------+
| 0 |
+---------------------------------+
1 row in set (0.00 sec)if find_in_set (...) >0 then exist else not exist.