room_number_shown字段分别有记录:'160号1006'、'158号02'、'1607号01'
我现在在要查询得到1006、02、01
ACCESS SQL语句要如何写
------解决方案--------------------
- SQL code
select mid(room_number_shown,1,Instr(room_number_shown,"号")-1) from test1
------解决方案--------------------
实测成功:
- SQL code
SELECT mid(room_number_show, 1, INSTR(room_number_show, "号") - 1FROM 表名;