sq1="select * from beng_1 where [startB%]='"& sbb &"' and [endB%]='"& ebb &"' and [Total flow rate]='"& zf &"'"
Set objCom.Activeconnection=strCon
objCom.CommandType=1
objCom.CommandText=sq1
Set objRe=objCom.Execute
这段代码怎么理解
Dim objCon,objCom,objRe,strCon
Set objCon=CreateObject("ADODB.Connection")
Set objCom=CreateObject("ADODB.Command")
Set objRe=CreateObject("ADODB.Recordset")
strCon="Provider=SQLOLEDB.1;Database=beng_1;Data Source=DESKTOP-6E47LN8\WINCC;UID=chen;PWD=chen;"
objCon.ConnectionString=strCon
objCon.Open()
这段代码有错误吗