★ wanayoo — archive 1999 http://www.devshed.com/Talk/Forums/Forum4/HTML/000302.htmlNouvelle recherche | Portail wanayoo
DevShed Menu
* DevShed Home
* Developer News
* DevShed Brain Dump




UBBFriend: Email This Page to Someone!
  DevShed Discussion Forums
  MySQL
  change datatype

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   change datatype
hkccm
Member
posted March 07, 2000 06:32 AM     Click Here to See the Profile for hkccm   Click Here to Email hkccm     Edit/Delete Message Reply w/Quote
I have already assigned a DATATYPE
eg.

userid VARCHAR(20)

now, I want to change it to VARCHAR(40)

what should i type in MySQL?

Kyuzo
Member
posted March 07, 2000 06:34 AM     Click Here to See the Profile for Kyuzo   Click Here to Email Kyuzo     Edit/Delete Message Reply w/Quote
ALTER table table_name
MODIFY userid varchar(40);

masood
Member
posted March 07, 2000 06:35 AM     Click Here to See the Profile for masood     Edit/Delete Message Reply w/Quote
alter table TABLENAME change column userid varchar(40)

something like that. check the manual for correct syntax...

All times are MST (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | DevShed.com

Copyright © 1997-2000 ngenuity. All rights reserved.

Powered by: Ultimate Bulletin Board, Version 5.41a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 1999.