use db --将截断字符串或二进制数据。 declare @maxlen int select len(sex) from [client3] group by sex select @maxlen = max(len(sex)) from [client3] select * from [client3] where len(sex) = @maxlen --delete from client3 where len(sex) = @maxlen