Jul 10, 2001 #1 Jblain22 Programmer Jul 10, 2001 4 US I need to change a field in a mysql table table name hr_data column name Reason4Leaving1 right now the column is char(30) and I need it to be char(100) This is what I have tried and it throws a syntax error: Alter table hr_data modify Reason4Leaving1 char(100)
I need to change a field in a mysql table table name hr_data column name Reason4Leaving1 right now the column is char(30) and I need it to be char(100) This is what I have tried and it throws a syntax error: Alter table hr_data modify Reason4Leaving1 char(100)
Jul 10, 2001 1 #2 ztrex Programmer Jun 26, 2001 5 US ALTER TABLE hr_data CHANGE Reason4Leaving1 Reason4Leaving1 CHAR (100) DEFAULT '0' not null should do the trick Upvote 0 Downvote
ALTER TABLE hr_data CHANGE Reason4Leaving1 Reason4Leaving1 CHAR (100) DEFAULT '0' not null should do the trick
Jul 11, 2001 Thread starter #3 Jblain22 Programmer Jul 10, 2001 4 US This gave me the syntax error syntax error near unexpected token `char(1' Upvote 0 Downvote