Mysql change column details

Posted by Ankur on Stack Overflow See other posts from Stack Overflow or by Ankur
Published on 2010-05-14T07:48:34Z Indexed on 2010/05/14 7:54 UTC
Read the original article Hit count: 225

Filed under:
|

I am trying to redefine the number of varchars a column can have (in a MySQL db).

I am doing

alter table obj_details IMG_SRC IMG_SRC varchar(180);

I want to change the number of characters that can be used in the column IMG_SRC to 180 (it is currently 100). But I get an error saying that I should check the syntax near IMG_SRC IMG_SRC varchar(180).

© Stack Overflow or respective owner

Related posts about mysql

Related posts about alter-table