当前位置: 代码迷 >> SQL >> 拼凑SQL字符串
  详细解决方案

拼凑SQL字符串

热度:102   发布时间:2016-05-05 12:25:37.0
拼接SQL字符串
拼接带有变量的字符串
例如:
"UPDATE Type_Medium_Info SET " + strType_Field + "=' " + strContent + " 'WHERE  Assert_Sn = '" + strAssert_Sn + "' AND Machine_Id= '" + strMachine_Id + "' AND Type_Med_Sn = '" + strType_Med_Sn + "' "
  相关解决方案