![]() |
|
|
Thread Tools |
|
#1
|
||||
|
||||
|
SQL Query : Mass move specific users based on usernames, not userid
Hi,
I need to mass move specific users (a couple of hundred of them) based on their usernames, not based on their id, to be deleted at a later time. Each user is unique, with differing post counts, join dates, etc. I've tried to mess around with some SQL queries but no luck.
I have the usernames on excel so if I could add them into the query either comma separated, or space separated, or line separated would be great! ![]() I've no knowledge on SQL, so I might be shootin' in the dark here! ![]() No members have liked this post.
|
||||
|
#2
|
||||
|
||||
Only problem is you have to make sure the username's are escaped. Feel free to PM me a list of the username's and I'll write up a quick script that'll get the job done.
__________________
Rap Battles & Hip-Hop Music - LyricalThreats No members have liked this post.
|
||||
|
#3
|
||||
|
||||
|
Very kind of you sir! However the list isn't finalized yet, will PM you the list once it's finalized!
However, I don't understand what you mean by the usernames being escaped? --------------- Added 05 Apr 2012 at 11:11 --------------- Managed to do it! I used excel to add the 'apostrophes' and appropriate spaces at the end of each username, and pasted it in the following format:
Where X is the target usergroupid That allowed me to paste the all the usernames at one go! Thanks again! SOLVED!The following members like this post: Pandemikk
|
||||
|
#4
|
|||
|
|||
|
By escaped, I mean there are certain characters in usernames that would break the query, most notably an apostrophe itself. But seeing as how everything worked out I'm going to assume none of the username's had an apostrophe in them, anyway.
![]() Glad I could be of assistance. ![]()
__________________
Rap Battles & Hip-Hop Music - LyricalThreats No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Thread Tools | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 00:56.






