TCommandType 都代表什么意思?

ttch 2008-04-19 02:43:17
TCommandType 都代表什么意思?
...全文
187 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
ttch 2008-05-04
  • 打赏
  • 举报
回复
谢谢。
wjbwjb 2008-04-19
  • 打赏
  • 举报
回复
TcommandType属性用来说明在CommandText中所说明操作的类型.
TcommandType的属性值应该与CommandText 中所说明操作相一致,例如:当CommandText
属性的内容为数据表格名时,CommandType的属性值就应当为cmdTable或者是cmdTable
Direct.
TcommandType的默认值为cmdunknown,因为cmdunknown可以适用于所有操作.在
TcommandType中显式的指明操作的类型可以提高应用程序的运行速度,但如果将操作的类型
置为cmdunknown,ADO必须先判断操作的类型,这样就会减慢运行的速度.
注意在TcommandType属性值中包含的cmdTable,cmdTableDirect和cmdOpenFile不是
针对TADOCommand组件执行操作的.
hsmserver 2008-04-19
  • 打赏
  • 举报
回复
cmdUnknown The type of command in the CommandText property is not known.
cmdText CommandText is a textual definition of a command or stored procedure call; data returned by an internal SQL statement.
cmdTable CommandText is the name of a table.
cmdStoredProc CommandText is the name of a stored procedure.
cmdFile CommandText is the name of a saved recordset file.
cmdTableDirect CommandText is the name of a table; all columns are returned.

2,497

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 数据库相关
社区管理员
  • 数据库相关社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧