From: Pradeepta Swain Date: 2008-01-02T12:45:17+09:00 Subject: how to pass variable value to a sql query Hi, How can i pass a variable to a sql query like rs = dbh.prepare("select *from status_check where id=204") rs.execute Instead of giving the value of id I want to make it dynamic ,where I can pass the dynamic value of id fetched from database much like in PL/SQL . How to do this .Anybody help !! -- Posted via http://www.ruby-forum.com/.