c# - Joined SELECT blocking UPDATE inside WHILE loop -


All codes are found by table , but each separate select from the field table T1 Join the T1 Inner from the table (The maximum field imported in the table from Select field, Max (Created options) and status & lt; & gt; 'Error' group by field) AS T2 ON T1Field = T2 I have read this data inside the loop for a while. Finally, I try to update the same table - the same one. The record reads - and it gives me an expiration. I think this because table is blocked for changes.

My question is this: How to work around it? Any way to 'fix' the query so that he can accept the update?

Additional information: If I work perfectly without querying queries

after each line of UPDATE Instead; A JOIN with a table and an update below [a sample; Not the exact question)

Update t1 SET column_name = join tab.some_column_name from the table T1 (select t1.) Join the T1 inner from the table (select field, max (created) ) AS MaxDate FROM table where the imported zero is and the status & lt; & gt; 'error' group by field) on T2OnT1.Field = T.Field and T.TettedOn = T.MaxDetts tab But T.Field = Tab .field

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -