这就是我想要做的:
SQLStmt = String.Format( _
"insert into Details (OrderId, GSId, Qty, Each, LedgerId) values ({0}, {1}, {2}, {3}, {4})", _
OrderId, lblGSId.Text, Qty, txtEach.Text, lblLedger.Text)
'Debug.Write("UpdateSQLStmt=" & SQLStmt & vbCrLf)
Dim UpdateCommand As New SqlCeCommand(SQLStmt, Cnxn)
UpdateOK = UpdateCommand.ExecuteNonQuery()