mysql 字段查询的问题,在线等 mysql 中的s表中有一字段名为floor (楼层的意思) 值 如 5/6 意为第五层 总层数为6现想查 第5层 的所有记录怎么实现呀,多谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from 表 where floor like '5/%' select * from 表 where floor like '%5/%' select * from s表 where `floor` like '5/%' 按楼主的意思,如果共6屋,查第五层直接 where fllor='5/6',否则where fllor like '%5/%'查所有楼的第五层! select * from s表 where `floor` like '5/%'非 select * from s表 where `floor` like '%5/%'后者有可能搜到15楼,25楼 select * from `s表` wherefloor regexp "^5/[0-9]$"; select * from `s表` where floor regexp "^5/[0-9]+$"; 多谢select * from 表 where floor like '5/%' 高手们帮我看看啊 为什么不能插入啊!!! 迷途的小羊 数据库中文网页显示为问号 php后台程序问题 提取指字字符串问题 用那个用户名登陆mysql? 又一个好东西 怎么让表单中的某个按钮实现一个php函数定义的动作??? PHP中的MAIL函数在测试时是不是必须要有MAIL服务器? 怎样在网页中输出数据库中的文本呢? 软件开发需求文档,在线等 php+mysql如何处理行数未知的表格
select * from s表 where `floor` like '%5/%'
后者有可能搜到15楼,25楼
select * from 表 where floor like '5/%'