![]() |
mass update of users Help...
I need to do a mass update of users based on some field in different tables
I have written some SQL but it would not work under mysql (in the office DB2 and oracle are ok with this kind of sql) This is what I am trying to run : Code:
UPDATE user,userfield Thanks LeMarsu |
hmm i don't know the update command very well, but maybe this will work:
[sql]UPDATE user LEFT JOIN userfield USING(userid) SET usergroupid=8 WHERE field8='United Kingodm' AND usergroupid=5[/sql] |
that doesn't work as well !!
There is something in myphp I don't get ! I can only do simple update Queries ! I don't know where I read this but apparently you can do updates with joins in mySQL ... can that be true !!? LeMarsu ... need HELP !!! |
when it doesn't work, what happens? if you just copied xenons query exactly it had a spelling error at Kindom
|
this is the error I get :
Quote:
|
I found this posts on the web...
http://www.geocrawler.com/archives/3...9/3/0/1441850/ Quote:
|
that means you have to write a script which selects u the rows to update at first:
PHP Code:
|
All times are GMT. The time now is 11:42 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|