• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

JDBC : ODBC bridge

Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Everyone;

Question: in using the Java JDBC DBC bridge to access a text file, how does one perform a case-insensitive SQL query on a text field using the LIKE keyword? The following query, for example, insists on being case-sensitive:
SELECT * FROM <file name>.txt WHERE NAME LIKE '%Smith%'

It seems to me that anyone querying a text field in a database would want at least the possibility of making it case-insensitive, in order to find records with typos such as "sMith". But I've searched high and low for this information and have come up dry.

On a related subject: although SQL is clearly used by half the civilized world, hours of searching on the www for a free, downloadable description of standard SQL have once again been fruitless. What is the top-secret font of SQL knowledge, known only to the initiate?

author & internet detective
Posts: 40791
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch!

Try the following?

I don't know of an online reference that describes standard SQL either. I've always used the database specific ones. Note that not all vendors completely implement the standard completely.

For a printed book, SQL in a Nutshell describes the standard.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic