我试过了:
Use SchoolDB
Select Distinct Surnames from Students
where Surname LIKE '%^@%'
以上我得到零值。
我还尝试用'%^@%'
或'%[!@]%'
'%[^@]%'
答案 0 :(得分:4)
SELECT
DISTINCT Surnames
FROM Students
WHERE
Surname NOT LIKE '%@%'
答案 1 :(得分:1)
您可以使用NOT LIKE,如下所示:
where Surname NOT LIKE '%[@]%'
期待它有所帮助。