我想为给定的n&值创建二项分布的完整样本空间。 ķ。所以Set cn = CreateObject("ADODB.Connection")
With cn
.Provider = "YOUR.PROVIDER"
.ConnectionString = "YOUR_CONNECTION_STRING"
.Open
End With
strQuery = "SELECT officer, salary FROM table"
Set rs = cn.Execute(strQuery)
Do While Not rs.EOF
For i = 0 To rs.Fields.Count
' Insert data to your worksheet here
' rs.Fields(0).Value holds the value for officer
' rs.Fields(1).Value holds the value for salary
Next
rs.MoveNext
Loop
rs.Close
应该返回类似的内容:
Bin(n = 4, k =2)