命令 (ADO/WFC 语法)

适用于:Access 2013 | Access 2016

包 com.ms.wfc.data

无。

public Invalid DDUE based on source, error:link not allowed in code, link filename:mdobjcommand_HV10294191.xml() 
public Command(String commandtext ) 

方法

public void Invalid DDUE based on source, error:link not allowed in code, link filename:mdmthadocancel_HV10294125.xml() 
public com.ms.wfc.data.Parameter Invalid DDUE based on source, error:link not allowed in code, link filename:mdmthcreateparam_HV10294243.xml(String 
 Name , int Type , int Direction , int Size , Object Value ) 
public Recordset Invalid DDUE based on source, error:link not allowed in code, link filename:mdmthcmdexecute_HV10294344.xml() 
public Recordset execute(Object[] parameters ) 
public Recordset execute(Object[] parameters , int options ) 
public int Invalid DDUE based on source, error:link not allowed in code, link filename:mdmthcmdexecute_HV10294344.xml(Object[] parameters ) 
public int executeUpdate(Object[] parameters , int options ) 
public int executeUpdate() 

executeUpdate 方法是一个特例方法,它用某些参数调用基础 ADO execute 方法。 executeUpdate 方法不支持返回 Recordset 对象,因此,execute 方法的 options 参数可以用 AdoEnums.ExecuteOptions.NORECORDS 进行修改。 在 execute 方法完成之后,其经过更新的 RecordsAffected 参数会传回给 executeUpdate 方法,executeUpdate 方法最终会以 int 形式返回。

属性

public com.ms.wfc.data.Connection Invalid DDUE based on source, error:link not allowed in code, link filename:mdproactivecon_HV10293988.xml() 
public void setActiveConnection(com.ms.wfc.data.Connection con ) 
public void setActiveConnection(String conString ) 
public String Invalid DDUE based on source, error:link not allowed in code, link filename:mdprocommandtext_HV10294195.xml() 
public void setCommandText(String command ) 
public int Invalid DDUE based on source, error:link not allowed in code, link filename:mdprocommandtimeout_HV10294196.xml() 
public void setCommandTimeout(int timeout ) 
public int Invalid DDUE based on source, error:link not allowed in code, link filename:mdprocommandtype_HV10294197.xml() 
public void setCommandType(int type ) 
public String Invalid DDUE based on source, error:link not allowed in code, link filename:mdproname_HV10294535.xml() 
public void setName(String name ) 
public boolean Invalid DDUE based on source, error:link not allowed in code, link filename:mdproprepared_HV10294617.xml() 
public void setPrepared(boolean prepared ) 
public int Invalid DDUE based on source, error:link not allowed in code, link filename:mdprostate_HV10294804.xml() 
public com.ms.wfc.data.Parameter Invalid DDUE based on source, error:link not allowed in code, link filename:mdobjparameter_HV10294590.xml(int n ) 
public com.ms.wfc.data.Parameter getParameter(String n ) 
public com.ms.wfc.data.Parameters Invalid DDUE based on source, error:link not allowed in code, link filename:mdcolparameters_HV10294594.xml() 
public AdoProperties Invalid DDUE based on source, error:link not allowed in code, link filename:mdcolproperties_HV10294633.xml() 

另请参阅

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。