Code: Select all
// SmartQuery1.UpdatingTable = '' by default
SmartQuery1.SQL.Text := 'select * from customers';
SmartQuery1.Open;
ShowMessage(SmartQuery1.UpdatingTable); // return empty valueCode: Select all
// SmartQuery1.UpdatingTable = '' by default
SmartQuery1.SQL.Text := 'select * from customers';
SmartQuery1.Open;
ShowMessage(SmartQuery1.UpdatingTable); // return empty valueCode: Select all
SmartQuery1.SQL.Text := 'select * from customers';
SmartQuery1.Prepare;
ShowMessage(TDBAccessUtils.GetTablesInfo(TCustomDADataSet(SmartQuery1)).Items[0].TableName);