sql - Best way to perform a SELECT statement and insert into the same table? -
Does anyone have a suggestion to improve the following statement:
ProductInfo Select (Ordrid, Product Name) 66673 with Insert (RollinLock), from ProductInfo (nolock) to FileInfoId, where ProductId = 66671 and IsEligableForCopy = 1 and ProductFileInfoId & gt; = 2768395941 and ProductFileInfoId & lt; 2768405941
It seems that time is running out because it fails to get lock Are you using DBMS? And did you try it without requesting lock? The example you presented appears to be a one-time one, but I believe that this is just an example, as opposed to some things in production.
Comments
Post a Comment