Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 349 Bytes

sql.md

File metadata and controls

22 lines (16 loc) · 349 Bytes

SQL

# insert where not exists
NSERT INTO table1 
            ( 
                        user_name, 
			  email,
                        x .... 
            ) 
SELECT ('user', '1@qq.com', '18666666666', ...) 
WHERE  NOT EXISTS 
       ( 
              SELECT id 
              FROM   table1 
              WHERE  x='18666666666');