Saya biasanya pakai EXECUTE IMMEDIATE, contoh: EXECUTE IMMEDIATE 'SELECT * FROM xx WHERE ' || variable_field || ' = ''0''';
Rgds Oscar ----- Original Message ----- From: musisi musisi To: Indo oracle Sent: Monday, September 01, 2008 1:42 PM Subject: [indo-oracle] nama field sebagai parameter pencarian dear all, saya minta bantuan nih. saya ada table A1 dgn field spt ini : .......... field1 varchar2(5) default '0' field2 varchar2(5) default '0' field3 varchar2(5) default '0' .......... bagaimana caranya agar clausa where bisa dinamis. misal suatu saat saya melakukan query : select * from A1 where field1='0' disaat yang lain melakukan query : select * from A1 where field2='0' bisa tidak ya, jika satu sintax query bisa untuk semuanya ( dengan parameter where yang berubah-ubah ) select * from A1 where ????? = '0' tolong pencerahannya. Thx __________________________________________________________ Search, browse and book your hotels and flights through Yahoo! Travel. http://sg.travel.yahoo.com [Non-text portions of this message have been removed] <br> <br> <table width="100%"> <tr> <td> ------------------------------------------------------------------------------<br> This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. MKD Group therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. <br><br> MKD Group, www.mkdgroup.com<br> ------------------------------------------------------------------------------<br> </td> </tr> </table> [Non-text portions of this message have been removed]

