seleccionar
subsecuencia (email, charindex (“@”, “@ ' +email) +1, charindex (”. “, email+”. ', len (email) - charindex (“@”, '@ ' +email))- 1) como col1,
la derecha (email, isnull (nullif (charindex (“@”, revés (email)), 0), len (email) +1) - 1) como col2
de yourtable
|