这个Sql语句如何写(200分)

  • 主题发起人 主题发起人 whsunbin
  • 开始时间 开始时间
W

whsunbin

Unregistered / Unconfirmed
GUEST, unregistred user!
数据库采用Access2000
有一字段A内容为'0001;0002;0003;0004;0005'
要找出字段A包含'0001'的所有记录。

以上要求能用一条Sql语句实现吗?
 
select * from 表
where 列名 like "%0001%"
 
select * from tablename where A like '0001%'
 
select * from YourTableName
where A like '0001%'
 
select * from tablename where A like '%0001%'
这么简单?,怪不得有那么多人争着进来![:)]
 
请你们在Access中试一下
select * from tablename where A like '%0001%'
根本就不能查询到正确数据
 
不知這樣成不成:
select * from tablename where A like '*0001*'

 
To:zxb200
OK
谢谢
 
后退
顶部