Wrox Programmer Forums
|
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language 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 June 25th, 2009, 03:27 AM
Authorized User
 
Join Date: Sep 2008
Posts: 87
Thanks: 1
Thanked 0 Times in 0 Posts
Default Like keyword

Hi,

is there any other way to do the below query

select key,value from dual where key like('A%','B%[%]')

i mean to say like as we cannot use two or more strings for a like function how can we write a select statement to search in two strings using wild card characters.

Thanks in Advance

Raj
 
Old June 25th, 2009, 06:17 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

If you are using MySQL you try MATCH() function, check the following link
http://dev.mysql.com/doc/refman/5.1/...xt-search.html
__________________
- Rakesh
http://iam-rakesh.blogspot.com
 
Old June 25th, 2009, 08:13 AM
Authorized User
 
Join Date: Sep 2008
Posts: 87
Thanks: 1
Thanked 0 Times in 0 Posts
Default

thanks ...

i am using oracle 10g





Similar Threads
Thread Thread Starter Forum Replies Last Post
The "New" Keyword rfarmer VB Components 1 August 16th, 2006 12:18 PM
MyBase Keyword Little Shell VB.NET 2002/2003 Basics 2 May 2nd, 2005 05:18 PM
this keyword RSteel C# 1 December 18th, 2003 04:33 AM
Overrides keyword Ned VB.NET 1 September 16th, 2003 02:29 PM





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