' 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

No members online now.

Forum statistics

Threads
474,333
Messages
2,571,754
Members
48,554
Latest member
CarrollCro

Latest Threads

Top