Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SQL Query help (vbulletin)
#1
I am wanting to run a query to change everyone that has no DOB to a generic type one like 1/1/80 or something?
Anyone know vbulletin and how to create the correct query?
Databases and me are not great friends.
Especially querys.
Easy to execute but hard to write.
Any help would be appreciated.
The Rules!
FTW Forum <-- Home of the Damned! --> Join me On MM


Reply
#2
Are you running this query within PHPmyAdmin or similar client? If so you can select your users table from the menu, then hit the search tab at the top, in the DOB collum search for blank, then from there you should be able to mass edit them to a generic value.

I could write you a SQL query to run that would do all of this but I don't know how your database is layed out or collum names.

Hope this helps anyway.
Reply
#3
Thanks Load. I ended up working out a way to do it.
Problem was i had many users with invalid DOB and it was throwing a small error.
So i just make them all the same DOB lols.
Using the below query.

UPDATE user
SET birthday = '' , birthday='1970-01-01'
WHERE birthday = '--'

Yea for some reason the birthday column had -- as the DOB instead of 0000-00-00 which is default if none is chosen i believe.
The Rules!
FTW Forum <-- Home of the Damned! --> Join me On MM


Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  vBulletin any good? Toxic Injection 8 1,381 08-05-2013, 04:13 AM
Last Post: Uzi
  merging vbulletin v4.2.. HELP!! dark_move 0 549 10-20-2012, 12:46 AM
Last Post: dark_move
  MyBB to vBulletin conversion. Outline 0 1,002 06-07-2012, 11:34 AM
Last Post: Outline
  Another Vbulletin theme edit DAMINK™ 13 3,263 12-30-2011, 06:33 PM
Last Post: AceInfinity
  VBulletin theme edits DAMINK™ 5 1,199 12-25-2011, 07:35 PM
Last Post: King

Forum Jump:


Users browsing this thread: 1 Guest(s)