Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,194,601 members, 7,955,214 topics. Date: Saturday, 21 September 2024 at 07:41 PM |
Nairaland Forum / Science/Technology / Programming / Pls, Help Me In This Java Problem (1149 Views)
Please Solve This Java Problem. / Simple Java Problem / Please Help To Solve This Java Problem. (2) (3) (4)
Pls, Help Me In This Java Problem by shehunDEgreat(m): 3:45pm On Mar 25, 2013 |
I want to create an application that search the database with keywords but i could only search by typing the complete name of the product i want to search. Pls, help.Thanks in advance |
Re: Pls, Help Me In This Java Problem by AZeD1(m): 4:44pm On Mar 25, 2013 |
This is not a java problem but a search problem. You should query the database using the (IN) keyword. SELECT * FROM [tablename] WHERE [columnname] IN [keywords] |
Re: Pls, Help Me In This Java Problem by javadoctor(m): 11:08pm On Mar 25, 2013 |
Its obviously nt a java code error,get ur queries ryt,learn hw to search string literals,substrings,emtc |
Re: Pls, Help Me In This Java Problem by Danyl(m): 5:22pm On Mar 28, 2013 |
Ur issue is not domain-specific,but u may try to under the Regular expressions and substrings in java they will go a long way to help and have it in mind that u nid a preloaded database, literals |
Re: Pls, Help Me In This Java Problem by ogbonnaic: 12:42pm On Apr 08, 2013 |
I don't know if U have sold the problem but U might try retrieving all the names of the products and searching through them anyway U want. I hope U understand what I mean |
Re: Pls, Help Me In This Java Problem by Nobody: 8:10am On Apr 09, 2013 |
try using a like sql statement. select * from [tablename] where [columnName] like '% [keyword] %' this is syntax for T-SQL implement it in your own way. |
(1) (Reply)
Icreate Innovation Hub (ibadan) / The Need For The First Nigeria Owned Billion Dollar Company In Nigeria / Help Concerning Artificial Neural Network (ANN) using MATLAB
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 8 |