You are not logged in.
My code:
var
props: TSQLDBWinHTTPConnectionProperties;
SQL: TStringBuilder;
begin
props := TSQLDBWinHTTPConnectionProperties.Create('127.0.0.1', 'XXX', '123', '123');
SQL := TStringBuilder.Create;
DD := TSynDBDataSet.Create(self);
DD.Connection := props;
SQL.Append('SELECT XGSTUFSID,XM,').AppendLine;
SQL.Append('CASE WHEN SUBSTRING(BKZYDM,3,1) IN(''5'',''6'') THEN ''2'' ELSE ''1'' END LX').AppendLine;
SQL.Append('FROM BBK').AppendLine;
DD.CommandText := SQL.ToString;
DD.Open;
When I modify the field of XM,and call Post and ApplyUpdates(0),but no data was saved.
How can i do ?Thanks.
Offline
Thanks,ab.
Offline