将截断字符串或二进制数据.sql 242 B

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