devxlogo

Inserting Quotations in Name to Table Column

Inserting Quotations in Name to Table Column

Question:
Is it possible to insert the single quote as part of a Name like O’Brian into a table using a SQL Insert Statement?

Answer:
Yes, use double quotes around the name.

For example:
insert into names (first,last)values (“Jim”,”O’Brian”)

devx-admin

Share the Post: