' Character in SQL

J

J P Singh

Hi All

We have an application which uses surname and the date of birth to allow
people to login.

The SQL gives an error if the user's surname contains the character '

Anybody knows a way around this?
 
P

Per-Olof Nilsson

Use double '. For example if a string is 'Peter's'. Then you should send
this to database: 'Peter''s'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,145
Messages
2,570,826
Members
47,371
Latest member
Brkaa

Latest Threads

Top