List:General Discussion« Previous MessageNext Message »
From:Dan Nelson Date:August 29 2001 9:57pm
Subject:Re: Problem In Alter Table
View as plain text  
In the last episode (Aug 29), abhishek sahay said:
> mysql> alter table pod_rating change 'Cable Planet' cable_plant varchar(15);
> ERROR 1064: You have an error in your SQL syntax near ''Cable Planet' cable_plant
> varchar(15)' at line 1

I believe you need to use backtics ` ` to put spaces in field names
here.  ' ' and " " were fine for creating the column names, because at
that stage the mysql parser was processing strings, not column names.

	Dan Nelson
Problem In Alter Tableabhishek sahay29 Aug
  • Re: Problem In Alter TableDan Nelson29 Aug