Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-14-2008, 11:00 AM
Java Tip's Avatar
Moderator
 
Join Date: Nov 2007
Posts: 1,691
Rep Power: 5
Java Tip will become famous soon enoughJava Tip will become famous soon enough
Default Using escape sequence to find rows begining with %
The snippet below is used to find all rows that begins with the character "%".

Code:
st = con.createStatement();
rs = st.executeQuery
 ("SELECT value FROM vendors WHERE value LIKE '$%%' {escape '$'}");
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting All rows in the JTable surot New To Java 1 04-16-2008 11:44 AM
Using escape sequence with like clause (%) Java Tip Java Tips 0 02-14-2008 10:57 AM
Using escape sequence with like clause (_) Java Tip Java Tips 0 02-14-2008 10:55 AM
Fetching rows from DB Java Tip Java Tips 0 02-06-2008 10:23 AM
Escape sequence problem eva New To Java 2 01-21-2008 11:15 PM


All times are GMT +2. The time now is 04:50 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org