kalau pakai sqlplus
select * from table where katagori in &;
Enter value for 1: ('A', 'B')
hehehe
On 9/13/06, abang sunda <[EMAIL PROTECTED]> wrote:
>
> all, mo nanya dikit.
> misalnya ada data dg 4 katagori
> A,B,C,D.
>
> terus mo dibikin query dg parameter nya katagori tsb.
> misalnya
> select * from table where katagori in
> ('&1','&2','&3','&4');
>
> yg jadi pertanyaan, gimana agar query tsb bisa tetep
> jalan meski user hanya isi 1, atau 2 parameter saja.
>
> pakai nvl bisa gak ya?
> where kategori
> in(nvl('&1',kategori),nvl('&2',kategori)
> dst ?
>
> makasih
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
[Non-text portions of this message have been removed]
--
-----------I.N.D.O - O.R.A.C.L.E---------------
Keluar: [EMAIL PROTECTED]
Website: http://indo-oracle.blogspot.com
Mirror: http://indooracle.wordpress.com
-----------------------------------------------
Bergabung dengan Indonesia Thin Client User Groups,
Terminal Server, Citrix, New Moon Caneveral, di:
http://indo-thin.blogspot.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/indo-oracle/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/indo-oracle/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/