高分问,如何在文本框显示select count(*) 的值?

来源:百度知道 编辑:UC知道 时间:2024/05/28 04:24:09
例如我要在text1.text中输出select count(*) from abc的返回值.
我用ADODC控件的.

这样:

select count(*) as mCount from abc
if not isnull(Adodc1.Recordset("mCount").Value) then
Text1.Text=Adodc1.Recordset("mCount").Value
else
Text1.Text=0
end if

<input type="text" name="aaa" value="<%=conn.execute("select count(*) from abc")(0)%>">