/ Published in: SQL
                    
                                        
Just replace the squared brackets with the correct values.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
INSERT INTO [TABLE2] AS T2 (NOLOCK) (T2.[VAL1], T2.[VAL2], ...)
SELECT T1.[VAL1], T1.[VAL2], ...
FROM [TABLE1] AS T1 (NOLOCK)
WHERE T1.[VAL1] = T2.[VAL1]
Comments
 Subscribe to comments
                    Subscribe to comments
                
                