--sql语句传CParamString例子
local sql = [[
    update plan_wo set 
        wo_state=:wo_state<int>,
        modified_by=:modified_by<char[52]>,
        modified_time=:modified_time<timestamp> 
    where wo_code=:wo_code<char[52]>
]];

local param = CParamString();
param:add('9');
param:add('1037');
param:add(cutil:getSys14Time());
param:add('W20190509142919001');
if not db:execSQL(sql,param:toString()) then
    return ui:tip(db:error());
end
Copyright © TouchNet 2015 all right reserved,powered by Gitbook最后修订时间: 2022-06-21 09:21:04

results matching ""

    No results matching ""