コード例 #1
0
        public int executeInsert(InsertData data, Transaction tx)
        {
            Plan       p  = new TablePlan(data.tableName(), tx);
            UpdateScan us = (UpdateScan)p.open();

            us.insert();
            string   fldname;
            Constant val;

            for (int i = 0; i < data.fields().Count; i++)
            {
                fldname = data.fields()[i];
                val     = data.vals()[i];
                us.setVal(fldname, val);//一对一,对应的设置
            }
            us.close();
            return(1);
        }
コード例 #2
0
        public void insert()
        {
            UpdateScan us = (UpdateScan)s;

            us.insert();
        }