Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2004
Posts: 118
Journeyman
Journeyman
Offline
Joined: Mar 2004
Posts: 118
On ubbt 6.4.x board is defined in w3t_Boards.

Boards keyword is used in next tables:
[*]w3t_Boards as Bo_Keyword
[*]w3t_Last as L_Board
[*]w3t_Online as O_Board
[*]w3t_Posts as B_Board
[*]w3t_Subscribe as S_Board
I thinkg this is it

What would be mySQL query to rename keyword for a specific board?

My knowledge of mySQL queries is limited to select, update, insert and delete []http://pages.prodigy.net/rogerlori1/emoticons/bigblush.gif[/]


Kind regards,
PaNTerSan
Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
UPDATE w3t_Boards
SET Bo_Keyword = 'newkeyword'
WHERE Bo_Keyword = 'oldkeyword'

You'd have to do a similar query for every table the board keyword is used in.

Backup your database first, as one slip of your fingers you can screw up alot of stuff.

Joined: Mar 2004
Posts: 118
Journeyman
Journeyman
Offline
Joined: Mar 2004
Posts: 118
[]JoshPet said:
You'd have to do a similar query for every table the board keyword is used in.
[/]
This is what I would like NOT to do

In fact - screw the whole thing: I'm gonna build my own lunar lander, with BlackJack and with my php script


Kind regards,
PaNTerSan
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
There is no way to update it with one query - as there are many differnt tables involved. You can only update one table at a time. You'd have to write a script to do it. Doing all the queries would be faster.

Joined: Mar 2004
Posts: 118
Journeyman
Journeyman
Offline
Joined: Mar 2004
Posts: 118
[]JoshPet said:
There is no way to update it with one query - as there are many differnt tables involved. You can only update one table at a time.[/]
OK - I did not know that, sorry []http://pages.prodigy.net/rogerlori1/emoticons/bigblush.gif[/]

[]JoshPet said:
You'd have to write a script to do it. Doing all the queries would be faster. [/]
I have 43 boards I'll write me a script when I have the time


Kind regards,
PaNTerSan
Sponsored Links
Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
In 6.5b1 you can do it in the admin panel with a few clicks :-p


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,575
Posts293,931
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)