Re: [PHP-WIN] [N-PHP-R] Help with MySQL

2002-03-01 Thread Nicole Amashta
Oh yeah, and to drop the index, I just did this: alter table ftp drop index username I don't ever remember making an index called username, but perhaps I did. Either way, it was a unique index against the login. I don't want to have unique logins because this table holds info about ftp from diff

Re: [PHP-WIN] [N-PHP-R] Help with MySQL

2002-03-01 Thread Nicole Amashta
OK, I figured it out: if I do a "show index from ftp", it will tell me all the indexes on that table. I dropped the index that was against that field and voila! No more unique constraint. :) Thanks guys! Nix0r www.aeontrek.com "B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message 27E647E5629E

RE: [PHP-WIN] [N-PHP-R] Help with MySQL

2002-02-28 Thread Svensson, B.A.T. (HKG)
>> >ALTER table balh chage column foo foo int(5)unsigned >> >> Does the key word CHANGE COLUMN really exists with in MySQL?? That would be >> amazing to be ale to change the domain of an attribute just like that. >> >Yep >Syntax (Nicole, this is the correct syntax by the way... :-) : > >ALTER TA

RE: [PHP-WIN] [N-PHP-R] Help with MySQL

2002-02-28 Thread Symeon Charalabides
> >ALTER table balh chage column foo foo int(5)unsigned > > Does the key word CHANGE COLUMN really exists with in MySQL?? That would be > amazing to be ale to change the domain of an attribute just like that. > Yep Syntax (Nicole, this is the correct syntax by the way... :-) : ALTER TABLE table

RE: [PHP-WIN] [N-PHP-R] Help with MySQL

2002-02-28 Thread Svensson, B.A.T. (HKG)
>ALTER table balh chage column foo foo int(5)unsigned Does the key word CHANGE COLUMN really exists with in MySQL?? That would be amazing to be ale to change the domain of an attribute just like that. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

RE: [PHP-WIN] [N-PHP-R] Help with MySQL

2002-02-28 Thread Svensson, B.A.T. (HKG)
>-Original Message- >From: Nicole Amashta >Sent: Thursday, February 28, 2002 8:22 PM >To: [EMAIL PROTECTED] >Subject: [PHP-WIN] [N-PHP-R] Help with MySQL > > >I know this is not MySQL, so that's why I put the [N-PHP-R] in >the subject >(means Non-PHP-Related) > >But, my problem is this. >

RE: [PHP-WIN] [N-PHP-R] Help with MySQL

2002-02-28 Thread Flint Doungchak
Hi Nicole, You need to change the columns and alter the specifications (or at least that is how I do it) ALTER table table_name CHANGE column column_name create_definition SO it would look like this ALTER table balh chage column foo foo int(5)unsigned I hope that helps. -Flint -Original