From: Hassan Schroeder Date: 2012-04-28T02:00:29+09:00 Subject: Re: ruby/shoes GUI - sqlite, how to isert a variable key in table? On Fri, Apr 27, 2012 at 9:35 AM, Danilo L. wrote: >>> db.execute "insert into db.table (column-name) values (#{@ivar})" > I tried it but did not work = / 1) What does "did not work" mean?? Was there an error message? Did an incorrect value get inserted into the DB? No value? 2) The solution would be obvious if you first tried the above insert statement with a string literal rather than a variable... -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com http://about.me/hassanschroeder twitter: @hassan