vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How to delete a sql entry (https://vborg.vbsupport.ru/showthread.php?t=53945)

superman 06-06-2003 11:46 PM

How to delete a sql entry
 
Well, the main problem is, it didn't creat tables, just modified original ones, here is the sql entry, can someone give me an sql entry to delete the entry?.
Heres the entry below. forum being the name of your forum db

ALTER TABLE `forum`.`user` ADD `hp` INT(6) DEFAULT '0' NOT NULL, ADD `maxhp` INT(6) DEFAULT '0' NOT NULL, ADD `ma` INT(6) DEFAULT '0' NOT NULL, ADD `maxma` INT(6) DEFAULT '0' NOT NULL, ADD `pp` INT(6) DEFAULT '0' NOT NULL, ADD `maxpp` INT(6) DEFAULT '0' NOT NULL, ADD `ap` INT(6) DEFAULT '0' NOT NULL, ADD `element` INT(3) DEFAULT '0' NOT NULL;

filburt1 06-07-2003 12:16 AM

[sql]
ALTER TABLE forum DROP hp;
ALTER TABLE user DROP hp;
[/sql]
edit: ...repeat the pattern...because the query's one line it's half impossible to read :rolleyes:

superman 06-07-2003 03:23 AM

ahh here we go, can you do it now? I have no clue about ANYTHING in sql, so can you like.. redo it so I can just copy and paste what you write? THANKS in advance. The hack I trid to implement wasn't worth it.


[SQL]ALTER TABLE `forum`.`user` ADD `hp` INT(6) DEFAULT '0' NOT NULL, ADD `maxhp` INT(6) DEFAULT '0' NOT NULL, ADD `ma` INT(6) DEFAULT '0' NOT NULL, ADD `maxma` INT(6) DEFAULT '0' NOT NULL, ADD `pp` INT(6) DEFAULT '0' NOT NULL, ADD `maxpp` INT(6) DEFAULT '0' NOT NULL, ADD `ap` INT(6) DEFAULT '0' NOT NULL, ADD `element` INT(3) DEFAULT '0' NOT NULL;[/SQL]

Xenon 06-07-2003 08:39 AM

[sql]ALTER TABLE forum.user DROP hp[/sql]

superman 06-07-2003 05:23 PM

well I took your guys advice, and tried writing an sql query with what you gave me, this is what I came up with, I didn't know if you shoudl put the ``` things in so I did, please let me know if this would work or not.

[SQL]ALTER TABLE `forum`.`user DROP `hp` INT(6) DEFAULT '0' NOT NULL, DROP `maxhp` INT(6) DEFAULT '0' NOT NULL, ADD `ma` INT(6) DEFAULT '0' NOT NULL, DROP `ma` INT(6) DEFAULT '0' NOT NULL, DROP `maxma` INT(6) DEFAULT '0' NOT NULL, DROP `pp` INT(6) DEFAULT '0' NOT NULL, DROP `maxpp` INT(6) DEFAULT '0' NOT NULL, DROP `ap` INT(6) DEFAULT '0' NOT NULL, DROP `element` INT(3) DEFAULT '0' NOT NULL; [/SQL]

EDIT: this didn't work :( can someone give me a clear thing of what to do?

Xenon 06-07-2003 09:46 PM

i told ya the exact query, nothing has to be added

repeat this queriy for every added field like maxhp....

superman 06-07-2003 09:47 PM

oh! lol thanks

superman 06-07-2003 10:58 PM

Thanks a bunch, worked fine, and got rid of all of em.

thanks again

Xenon 06-08-2003 09:25 AM

you're welcome


All times are GMT. The time now is 11:22 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
  • Page Generation 0.00954 seconds
  • Memory Usage 1,722KB
  • 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
  • (9)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