I'm trying to generate a script to enter data into a database although I've come across an issue with names containing an apostrophe. For example:
INSERT INTO people(firstname, lastname) VALUES ('Mark', 'O'something');
The name containing the apostrophe is closing my single quotes and causing an error, I also can't use "
as Postgres doesn't seem to accept them. Is there anything I can do to ensure names like this don't break my script.