解决方案 »
- mysql varchar长度问题
- MySQL创建数据库出错
- 我想用jdbc往mysql里面插数据,由于是新手,所以希望大家发个实战的简单代码来,我管理数据库工具是myqsl-front
- 【30分】问个小小滴问题
- 请大家帮忙看看这段代码为什么不行
- 在mysql中,如何删除两个表中某字段内容相同的记录?
- mysql 4.1插入中文乱码
- 请问哪位同时安装MySQL,Oracle8i在W2K Server
- 一个关于查询count值得问题(mysql)
- 添加外键约束的困惑
- Win服务器经常出现 Can't connect to MySQL server on 'localhost' (10061),怎么解决?
- mysql 连接查询,如何得到总的记录条数
from a
union all
select id,substring_index(substring_index(tag,' ',2),' ',-1)
from a
where length(tag)-length(replace(tag),' ',''))>0
union all
select id,substring_index(substring_index(tag,' ',3),' ',-1)
from a
where length(tag)-length(replace(tag),' ',''))>1
然后excute这个动态语句
绿色php资源http://www.phpzy.com 医学考试网 http://www.bao100.com