Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCM Java EE 6 Enterprise Architect Exam Guide
this week in the
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
It is sorta covered in the
JavaRanch Style Guide
subject: simple sql help. the select command.
oracle sequence id
Inverse this where condition
Passing a Querystring from one page to the next
oracle sequence id and table data insertion
converting a mysql DATETIME (HH:mm:ss) to seconds
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014