vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Change Values In One Field (https://vborg.vbsupport.ru/showthread.php?t=72777)

The Equivocate 12-11-2004 08:26 PM

Change Values In One Field
 
I have my vbgames table, and I want to be able to change the 'arcadepass_jackpot' on all of my 300+ games all at once, instead of going into each one and editing them one by one. Is there an SQL query that I can run that will alter all 'arcadepass_jackpot' fields from 500 to 250 (or any other number)?

Davey 12-11-2004 08:44 PM

[sql]UPDATE vb3_arcadepass_jackpot
SET fieldname='250'
WHERE fieldname='500'[/sql]
Change vb3_arcadepass_jackpot to the correct 'arcadepass_jackpot' table.
Change fieldname to the name of the field where the values are kept.

edit.- you know how to run that query right? in vB acp or in phpMyAdmin..

The Equivocate 12-11-2004 08:54 PM

Yep, this is what I did and it worked fine

[sql]UPDATE vbgames
SET arcadepass_jackpot='250'
WHERE arcadepass_jackpot='500'[/sql]

Davey 12-12-2004 09:18 AM

OK I almost had it. ;)


All times are GMT. The time now is 03:17 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01120 seconds
  • Memory Usage 1,706KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete