zoukankan      html  css  js  c++  java
  • 向SQL中插入数据

    方法一: 

       ADOQtemp.Close; ADOQtemp.Connection := DM.ADOConnection1; ADOQtemp.SQL.Clear; ADOQtemp.Parameters.Clear;
        ADOQtemp.SQL.Add('insert into LabelMainInfo() select *  from tempLabelMainInfo  where OperatorNO=:a ');
        ADOQtemp.Parameters.ParamByName('a').Value := gOperatorNO;
        ADOQtemp.ExecSQL;

    方法二:

      ADOQtemp.Close; ADOQtemp.SQL.Clear; ADOQtemp.Parameters.Clear;
      ADOQtemp.SQL.Add('insert into WorkingRecord(BH,OperatorNO,OperatorDate,OperatorType,isChecked) values(:aBH,:aOperatorNO,:aOperatorDate,:aOperatorType,:aisChecked)');
      ADOQtemp.Parameters.ParamByName('aBH').Value := tempMaxNo; //当前编号
      ADOQtemp.Parameters.ParamByName('aOperatorNO').Value := gOperatorNO; //操作员编号
      ADOQtemp.Parameters.ParamByName('aOperatorDate').Value := RzDateTimeEditDanJu.date; //操作日期
      ADOQtemp.Parameters.ParamByName('aOperatorType').Value := '成品出库单'; //单据类型
      ADOQtemp.Parameters.ParamByName('aisChecked').Value := 0; //单据是否审核
      ADOQtemp.ExecSQL;

  • 相关阅读:
    Unix下5种I/O模型
    UDP/TCP拾遗
    智能指针
    YUV的数据格式
    OpenCV中RGB和HSV转换的问题
    RGB、YUV和HSV颜色空间模型
    const成员函数和mutable关键字
    设计模式--观察者模式Observer(对象行为型)
    linux备忘簿
    ctags使用详解(转载)
  • 原文地址:https://www.cnblogs.com/bingege/p/1620903.html
Copyright © 2011-2022 走看看