On Thu, 29 Apr 1999, Oana Radulescu wrote:
> I am having difficulty creating an insert statement in Java that would
> use variable values as the values parameters.
> None of the following worked -- I would get either the name of the
> variable instead of the value or nothing at all:
> String value1 = new String("blah");
> insert into table values (value1);
Try this..it works for me...
executeUpdate("insert into table values ('"+value1+"')");
it uses + to concatenate 2 strings...even the variable.