You are not logged in.
Pages: 1
HI
I'm trying to create a model using ORM oracle, but all the examples I have seen are in SQLITE.
Procedure TServiceRemoteSQL.Cadastro (const aOp: integer; var fTableJSON: RawUTF8);
var
Rec: TItens;
Rows: ISQLDBRows;
jItensFIS : TSQLTableJSON;
vselect: string;
Database: TSQLRestServer;
l:integer;
Begin
Database := TSQLRestServer.Create(aModel, true);
Rec := TItens.Create;
jItensFis:= TSQLTableJSON.Create([],s2U(vselect),fTableJSON);
while jItensFis.Step do
begin
l:=1;
Rec.empresa:= strtoInt(u2s(jItensFis.Get(l,0)));
Rec.filial:= strtoInt(u2s(jItensFis.Get(l,1)));
if Database.Add(Rec,true)<>0 then
writeln(#10'Erro Inserindo.'#10);
end;
end;
Offline
Pages: 1