欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

ADO Execute 方法

定義和用法

Execute 方法可執(zhí)行 Command 對(duì)象的 CommandText 屬性中指定的查詢、SQL 語句或存儲(chǔ)過程。

如果 CommandText 屬性指定以行返回的查詢,執(zhí)行產(chǎn)生的任何結(jié)果都將存儲(chǔ)在新的 Recordset 對(duì)象中。如果此命令不是以行返回的查詢,提供者將返回關(guān)閉的 Recordset 對(duì)象。

語法:對(duì)于以行返回的 Command:

Set rs=objcommand.Execute(ra,parameters,options)

語法:對(duì)于不是以行返回的 Command:

objcommand.Execute ra,parameters,options
參數(shù) 描述
ra 可選。返回受查詢影響的記錄的數(shù)目。對(duì)于以行返回的查詢,請(qǐng)使用 Recordset 對(duì)象的 RecordCount 屬性來計(jì)算該對(duì)象中的記錄數(shù)量。
parameters 可選。用 SQL 語句傳遞的參數(shù)值。用于更改、更新或向 Parameters 集合插入新的參數(shù)值。
options 可選。指示提供者應(yīng)如何計(jì)算 Command 對(duì)象的 CommandText 屬性。可以是一個(gè)或者多個(gè) CommandTypeEnumExecuteOptionEnum 值。默認(rèn)是 adCmdUnspecified。

實(shí)例

<%
Set objcommand.Text="SELECT * FROM Customers"
objCommand.Execute
%>

或者:

<%
Set objcommand.Text="Customers"
objCommand.Execute(,,adCmdTableDirect)
%>