我在数据库(access)中有一个表a 字段有id(自动分配) title(文本) type(文本) 现在有几条记录
id title type
01 a A
02 b B
03 c B
04 d C
05 e B
我想取出所有type是B的记录的第一条,在此问题中就是 02 b B 这条记录,请问语句怎么写?
id title type
01 a A
02 b B
03 c B
04 d C
05 e B
我想取出所有type是B的记录的第一条,在此问题中就是 02 b B 这条记录,请问语句怎么写?
select top 1 * from a where type='b'
Select top 1 * From a Where Type='B'
--这样就行了
select top 1 * from a where type='b'
--这样就行了
where path like '%x%'