Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2
This is the forum to discuss the Wrox book Professional Android Application Development by Reto Meier; ISBN: 9780470344712
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 18th, 2010, 05:26 PM
Registered User
 
Join Date: Mar 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Error in QUERY

Hi,

I am trying to search by database. The user types in a name and I need to search by database for that name and return with that name and the data associated with it. I have used the below statement to do that but could not get it to work.

public Cursor fetchByName(String RName) throws SQLException
{

String[] COLUMNS = new String[]{KEY_ROWID,
KEY_NAME,
KEY_Description,
KEY_Note};

Cursor mCursor = db.query(DATABASE_TABLE,COLUMNS,KEY_NAME + " MATCH ?", new String[] { RName }, null, null, null);
return mCursor;

}

Prerna




Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 11:17 AM
error in query beetle_jaipur SQL Server 2000 9 April 4th, 2006 02:16 AM
Error in a query Ioulia Classic ASP Databases 1 May 12th, 2005 12:19 AM
Syntax error in query. Incomplete query clause. dispickle ADO.NET 3 April 16th, 2004 01:04 PM
Error on Make-Table Query In Union Query rylemer Access 1 August 20th, 2003 07:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.