比如
Dim cmd As new SQLCommandcmd.ConnectionName = "test"cmd.CommandText = "Insert Into test (字段1, 字段2) Values(?,?)"cmd.Parameters.Add("@客户","01")cmd.Parameters.Add("@日期", dbnull.value)cmd.ExecuteNonQuery