A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
simple sql help. the select command.
Joined: Mar 28, 2012
Apr 10, 2012 04:05:24
I know this is simple sql. but i am trying to do a simple select command.
the command says
Select title from cds where cd_id = 'cd001'
but my question is how do i put multiple values in.
for example where cd_id = 'cd001', 'cd005', 'cd023'
Joined: Jan 30, 2007
Apr 10, 2012 04:10:54
You can use the "like" in the where clause instead of "=".
Joined: Aug 22, 2010
Apr 10, 2012 04:13:45
Hi Bhavin, and welcome to the Ranch!
In your case, you could probably use the
operator. I'd suggest reading some
, it will come in handy.
If you plan to run this statement using
, you should also read a thing or two about
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: simple sql help. the select command.
converting a mysql DATETIME (HH:mm:ss) to seconds
oracle sequence id
Passing a Querystring from one page to the next
Inverse this where condition
oracle sequence id and table data insertion
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013