//-----找重复个人用户
select * from [dnt_users]
where [username] in (select [username] from [dbo].[dnt_users] group by [username] having count([username]) > 1)
//-------substring和indexof在sql的使用
substring([wq_img],CharIndex('/',[wq_img])+1,len([wq_img]))
select * from [dnt_users]
where [username] in (select [username] from [dbo].[dnt_users] group by [username] having count([username]) > 1)
//-------substring和indexof在sql的使用
substring([wq_img],CharIndex('/',[wq_img])+1,len([wq_img]))