' 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,337
Messages
2,571,776
Members
48,582
Latest member
DerickEggl

Latest Threads

Top