How to put apostrophes in a query
843854Jun 16 2004 — edited Jun 16 2004Hi,
We use JDK1.2.2 with Oracle 8. We are using JDBC with the Oracle Driver installed.
We have a list of companies in our database, some of which have an apostrophe in them. However, if someone types a company name containing an apostrophe on a company search webpage i get the error
java.sql.SQLException: ORA-00911: invalid character
So how would i query the database for a name which contains an apostrophe. The apostrophe in the database is written as ' and not any special characters etc.
What do i do?