sudip wrote:Hello,
Grigory sent me the solution:-
Hi Sudip,
RDDI_AFFECTEDROWS returns the number off affected rows AFAIK.
> How can I save records into database using HbSqlDD.
You should use the command INSERT INTO <table> .. for append record and UPDATE
<table> SET .. for replace record(s).
Thank you Grigory!!!
You will be kind enough if you please send one sample regarding this.
With best regards.
Sudip
The rdd author explain this explicity in the text I've posted:
Code: Select all
The programmer must call SQL command explicitly to modify SQL tables.
So, it must be done the same way that table is created and records added in the procedure 'createtable()' in the uploaded sample, using PURE SQL via RDDINFO(RDDI_EXECUTE,... ) function.
I've was talking about a different thing.
When you modify a table via
xBase code and only the recordset is changed, if we could know what records were affected by these commands we could create some kind of SQL COMMIT command to 'flush' the changes to
true backend table.
Regards,
Roberto.