MySQL query question

Started by Anguz, August 18, 2003, 01:19:39 PM

Previous topic - Next topic

Anguz

this is the first time I actually try my luck with mysql, so forgive me if the question is silly  :(

if I want to change the avatar column in yabbse_members table, from tinytext to text, would this query be ok?

ALTER TABLE yabbse_members MODIFY avatar TEXT;
Cristián Lávaque http://cristianlavaque.com

Haase

Is there any reason you need to do this in script?  The easiest thing to do would be to go in via phpMyAdmin and change it that way.
Find out about Enigma, the portal built exclusively for YaBB SE will be continuing it's work towards SMF

Anguz

well... I know

but this is for a mod I have almost complete, I need to give the query for others to do it too... maybe do a script to do it even, dunno

but I do need to be sure it's the correct query before using it in the mod :)
Cristián Lávaque http://cristianlavaque.com

Spaceman-Spiff

if you do it in phpmyadmin, it will tell you the SQL code too

Anguz

great! I didn't know!!  :o

I did it and it gave me this query

ALTER TABLE `yabbse_members` CHANGE `avatar` `avatar` TEXT DEFAULT NULL

thx guys :)

I'll release the new mod a bit later today then ;D
Cristián Lávaque http://cristianlavaque.com

[Unknown]


[Unknown]


[Unknown]


[Unknown]

Quote from: bostasp on August 18, 2003, 06:10:06 PM
LOL... this is getting silly  :D

Bingo!!!!  CORRECT!

-[Unknown]

Anguz

#9
yeah!!!

it's working!! :D I've done it!! 8)

I'll post it in Completed Mods in a few and will put a link here to the thread :)

but you can have a peek here ;)
http://llama.lewismedia.com/~anguz/forums/index.php?action=viewprofile;user=webmaster
Cristián Lávaque http://cristianlavaque.com

Anguz

Cristián Lávaque http://cristianlavaque.com

Shoeb Omar


Anguz

thx!

my members are starting to love it! since it makes it very easy for them to have the avatar script without having a server or knowing code, etc :)

if you have any comments on it, please post them in the mod's thread... I'd love to have some feedback :D
Cristián Lávaque http://cristianlavaque.com

Advertisement: