The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Hi all
![]() need a hand if anyone can help. I want to do a sitewide move of:- User Profile Fields (field8) into 'user' table 'usertitle' So that's every members 'field8' into their 'usertitle'. Problem is I can't find 'User Profile Fields (field8)' Can anyone help me with the query I can insert into phpmyadmin? Thanks in advance
|
|
#2
|
||||
|
||||
|
[sql]UPDATE user
SET user.usertitle = userfield.field8 LEFT JOIN userfield USING (userid)[/sql] Not tested, so you might want to try on a test board first. |
|
#3
|
||||
|
||||
|
nope
- soooo close.any other idea's
|
|
#4
|
|||
|
|||
|
Other way round...
![]() [sql]UPDATE user LEFT JOIN userfield USING (userid) SET user.usertitle = userfield.field8[/sql] |
|
#5
|
||||
|
||||
|
Ah, that's right. I always confuse the order on an update.
|
|
#6
|
||||
|
||||
|
Beautiful, worked like a charm. Thank you both for your help
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|