如何在mssql中显示员工表中以'tt'结尾的员工姓名

时间:2010-11-08 15:54:51

标签: mysql sql-server-2005

如何在mssql

中显示员工表中以'tt'结尾的员工姓名

2 个答案:

答案 0 :(得分:2)

select *
from Employee
where Lastname like '%tt'

答案 1 :(得分:1)

SELECT * FROM Employee WHERE RIGHT(Lastname, 2) = 'tt'