PDA

Click to See Complete Forum and Search --> : SQL string with space?


sveegaard
Apr 28th, 2006, 02:02 AM
Hi,
How do I store a space-containing string in MySQL? When I try to store e.g. "Steffen Sveegaard", MySQL returns an error! The variable is wrapped in "'s in the query.

dee-u
Apr 28th, 2006, 02:48 AM
What is the error raised?

sveegaard
Apr 28th, 2006, 03:00 AM
"You have an error in your SQL syntax near 'Sveegaard (id int (255) not null primary key auto_increment, dato varchar (75) ' at line 1" while creating a new table