View Full Version : Uninstalling queries
Edison Chen
07-19-2004, 12:48 AM
Quick question.
If we wish to get rid of a query, how do we uninstall it?
Modin
07-19-2004, 01:46 AM
queries aren't installed, they are performed on a database to manipulate its data.
are you saying you ran a query and now want to reverse it? This depends on the query...
what query did you run?
Edison Chen
07-19-2004, 01:54 AM
ALTER TABLE user ADD userloc varchar(250) NOT NULL [original]
I want to change it to
ALTER TABLE user ADD userloc varchar(250) NOT NULL DEFAULT '0'
Modin
07-19-2004, 01:58 AM
run the query ...
ALTER TABLE user CHANGE userloc userloc VARCHAR(250) DEFAULT '0' NOT NULL
that'll change that field for ya :)
Edison Chen
07-19-2004, 04:53 AM
Thanks so much for your help. it's working now.
Modin
07-19-2004, 03:07 PM
great to hear :)
your welcome
Edison Chen
07-19-2004, 11:22 PM
Sorry, apparently, the other query works better. How do I change it back to the initial query? Sorry for that.
Modin
07-20-2004, 02:36 AM
Like this :)
ALTER TABLE user CHANGE userloc userloc VARCHAR(250) NOT NULL
Edison Chen
07-20-2004, 02:49 AM
Thanks so much. It really helped. My forums just opened yesterday and doing pretty well on its first day already. Thanks to you. ;)
Modin
07-20-2004, 04:50 AM
glad I could help mate :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.