kennyaidan
Programmer
Hi,
I'm learning sql for the first time, and i created a table called story to simulate a news story database. I set it up as follows
CREATE TABLE story
(
id varchar(11),
headline varchar(100),
author varchar(30),
paragraph text,
story text,
date varchar(8),
genre varchar(20)
);
However when i entered a string into the paragraph and story fields which contains a "'" ie "John's house" , i get an error message back stating
Server: Msg 105, Level 15, State 1, Line 1
Unclosed quotation mark before the character string ');
Is there any way to create a table that recongises that this character is only part of a string.
thanks
aidan
I'm learning sql for the first time, and i created a table called story to simulate a news story database. I set it up as follows
CREATE TABLE story
(
id varchar(11),
headline varchar(100),
author varchar(30),
paragraph text,
story text,
date varchar(8),
genre varchar(20)
);
However when i entered a string into the paragraph and story fields which contains a "'" ie "John's house" , i get an error message back stating
Server: Msg 105, Level 15, State 1, Line 1
Unclosed quotation mark before the character string ');
Is there any way to create a table that recongises that this character is only part of a string.
thanks
aidan