Princy, Thursday, January 24, 2002, 3:23:24 PM, you wrote:
PT> Hi ! PT> I did try using the mysql client gui but you cant create indexes thru that. PT> Also, since I've exported from access, the datatype all seem to be PT> MEDIUMTEXT. PT> So, when I try the create index syntax, PT> ie, CREATE UNIQUE INDEX pk_code on company( ?????) Take a look at: http://www.mysql.com/doc/C/R/CREATE_INDEX.html PT> I am not sure what to put it the brackets. I tried by just specifying PT> length ,tried char,varchar. PT> It is possible for me to change the data type of a column?? Or do I have to PT> recreate the tables? Yes, it is possible. Try to look for CHANGE/MODIFY at: http://www.mysql.com/doc/A/L/ALTER_TABLE.html -- For technical support contracts, goto https://order.mysql.com/ This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Victoria Reznichenko / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php