Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

How to insert a value that contains an apostrophe (single quote)?

Asked by Ananya Pawar Apr 23, 2021 1.1K views 1 answer
Share

About this question

What is the correct SQL syntax to insert a value with an apostrophe in it?

Insert into Person
(First, Last)
Values
'Joe',
'O'Brien'

I keep getting an error as I think the apostrophe after the O is the ending tag for the value. How to avoid sql apostrophe?

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.