From: Luis Parravicini Date: 2008-10-01T05:16:51+09:00 Subject: Re: Syntax error On Tue, Sep 30, 2008 at 5:01 PM, Alan Nicoll wrote: > ruby data2.rb > data2.rb:3: syntax error, unexpected tINTEGER, expecting ')' > cursor = conn.exec('SELECT entry_id, status FROM aradmin.et_requests > where entry_id > '007850'') Check the quotes used in the string passed as argument to exec. The single quotes used for the ruby string are clashing with the single quotes around 007850. Try using "SELECT entry_id, status FROM aradmin.et_requests where entry_id > '007850'". > where entry_id > '007850'' -- Luis Parravicini http://ktulu.com.ar/blog/