在 Windows Mobile 中的 SQLCE 中查找数据的最快方法是什么(使用 C#)? [英] What is the fastest way to find data in SQLCE in Windows Mobile (using C#)?

查看:25
本文介绍了在 Windows Mobile 中的 SQLCE 中查找数据的最快方法是什么(使用 C#)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Windows Mobile 中的 SQLCE 中查找数据的最快方法是什么(使用 C#)?我有一个包含一百万条记录的数据库.最快的方式是 SQL 查询、DataReader 还是什么?

What is the fastest way to find data in SQLCE in Windows Mobile (using C#)? I have a database with one million records. Is the fastest way an SQL query, a DataReader, or what?

推荐答案

为您的 where 子句和 SqlConnection 使用索引.

Use an index for your where clause and a SqlConnection.

这篇关于在 Windows Mobile 中的 SQLCE 中查找数据的最快方法是什么(使用 C#)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆