Hi there,
I have a c sharp file that reads in a text file and add the fields to my MYSQL server db.
My table is defined as:
"CREATE TABLE images(hotelID int, Name varchar(40), Caption varchar(20), URL varchar(100), Supplier varchar(20), Width int, Height int, ByteSize int, ThumbNailURL varchar(100))";
and I have the statement
INSERT INTO images VALUES(4110, "Exterior", "", " "HRN", 328, 220, 19394, "
and notice that the 3rd field is null, but as in the table definition, the Caption column should take null values (it is indicated so in the enterprise manager)
The error I get is
The name 'Exterior' is not permitted in this context. Only constants, expressions, or variables allowed here. Column names are not permitted.
Cannot use empty object or column names. Use a single space if necessary.
Any sort of feedback is greatly appriciated.
I have been trying stuff the whole day with no luck ....
thanks
I have a c sharp file that reads in a text file and add the fields to my MYSQL server db.
My table is defined as:
"CREATE TABLE images(hotelID int, Name varchar(40), Caption varchar(20), URL varchar(100), Supplier varchar(20), Width int, Height int, ByteSize int, ThumbNailURL varchar(100))";
and I have the statement
INSERT INTO images VALUES(4110, "Exterior", "", " "HRN", 328, 220, 19394, "
and notice that the 3rd field is null, but as in the table definition, the Caption column should take null values (it is indicated so in the enterprise manager)
The error I get is
The name 'Exterior' is not permitted in this context. Only constants, expressions, or variables allowed here. Column names are not permitted.
Cannot use empty object or column names. Use a single space if necessary.
Any sort of feedback is greatly appriciated.
I have been trying stuff the whole day with no luck ....
thanks