delete from tb where charindex('@',emailaddress)=0

解决方案 »

  1.   

    create table tb(
    email varchar(200)
    )
    insert tb select '[email protected]'
    insert tb select 'hv.com'
    insert tb select '[email protected]'delete from tb where charindex('@',email)=0select * from tbdrop table tb/*
    email                                                                                      
    --------
    [email protected]
    [email protected](所影响的行数为 2 行)
    */
      

  2.   

    delete tb where email not like '%@%'