Guys i have an SQL table with loads of fields. I somehow managed to change the firstname and lastname field same on every user.
for example:
i managed to change the above to:
I could manually change it but there are 7000 records :(
Is there anyway i could get the details from the username which is still correct and put that into firstname and lastname?
Like FROM username IGNORE 'domain\' INPUT text UNTIL '.'
I know thats a bit crap lol but how would i do it in real life so it would work?
for example:
ID | Username | Fname | Lname |
1 | domain\a.a | a | a |
2 | domain\b.b | b | b |
3 | domain\c.c | c | c |
i managed to change the above to:
ID | Username | Fname | Lname |
1 | domain\a.a | d | e |
2 | domain\b.b | d | e |
3 | domain\c.c | d | e |
I could manually change it but there are 7000 records :(
Is there anyway i could get the details from the username which is still correct and put that into firstname and lastname?
Like FROM username IGNORE 'domain\' INPUT text UNTIL '.'
I know thats a bit crap lol but how would i do it in real life so it would work?