selezionare
sottostringa (email, charindex (“@„, “@ ' +email) +1, charindex („. “, email+„. ', len (email) - charindex (“@„, '@ ' +email))- 1) come col1,
destra (email, isnull (nullif (charindex (“@„, inverso (email)), 0), len (email) +1) - 1) come col2
da yourtable
|