📜  vba createparameter null - VBA 代码示例

📅  最后修改于: 2022-03-11 14:51:56.038000             🧑  作者: Mango

代码示例1
Dim cmd As New ADODB.Command
Dim p1 As ADODB.Parameter
' use Null as value
set p1 = cmd.CreateParameter("param_name", adVarChar, adParamInput, 50, Null)
p1.Attributes = adParamNullable  
cmd.Parameters.Append p1