I'm using variables to store values onto table.
f_nm holds first name and l_nm holds last name of the person.
What if these strings for first name or last name contain a single quote ( ' )? I've been encountered to an error right now which indicates error near ' .
How do I write an insert query for inserting first name and last where
f_nm = Kevin
l_nm = O'Brien
Here is an example of the code causing the error (pasted from comment):
INSERT INTO Person VALUES ( ' " + f_nm + " ' , ' " + l_nm " ' ) "
INSERTstatement? Can you post more code please?