EDB Seek -- how edb to complex search

本文探讨了在Windows CE环境下使用CeSeekDatabaseEx()进行多条件数据库查询的方法。具体讨论了如何设置查询条件来搜索特定组且名称首字母为指定字符的记录。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


How do we search for group=3 and name contains string "as" using
CeSeekDatabaseEx()?
Thanks,
Rocky

"Leonard Mosescu [MS]" <lemo@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:OfLY$VNkHHA.4872@xxxxxxxxxxxxxxxxxxxxxxx
I believe you'd have to :

1) Create a sort order on (group, name) - using
CeCreateDatabaseWithProps() or CeSetDatabaseInfo() as far as I remember
2) Use CeSeekDatabaseEx() with CEDB_SEEK_PREFIX |
CEDB_SEEK_VALUEFIRSTEQUAL for the group, name prefix

--
Thank you,
Leonard Mosescu, Microsoft Windows CE Compiler Team

This posting is provided "AS IS" with no warranties, and confers no
rights.

"tather" <tather@xxxxxxxxx> wrote in message
news:1178531990.436364.255380@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all,
I am a jackaroo, less than a month in windows ce R&D. I have a
question about edb.
I have read msdn carefully, but I do not know how to search
records according to more than one conditions.
for example:
db Property: Name - CEVT_LPWSTR
group - CEVT_UI2

table like this:
name group
----------------------------------------
aaron 1
rush 2
bush 3
nash 3
cash 3
ruby 4
cim 3

Now I want to search these records:
1) group equal 3
2) name first char is 'c'

what shall I do?

thanks a lot!

mplex search

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值