how to get variable into mysql script

1
0
-1

Hi,
I am new at variables and connectors.

This works.
insert into test.persons (LastName) values ('narly');

This doesn't.
insert into test.persons (LastName) values ( ${lastname} );

Here is the bar file
http://wikispeedia.org/Rhino_Registration--1.0.bar

Thanks for any leads!
jim

2 answers

1
+1
-1

Hi,

You just only need to put the apostrophe ' '
So the query must be like this : insert into test.persons (LastName) values ( '${lastname}' );
I hope it works.

Regards

1
0
-1

Newbie:
I am trying to fill a Form with mysql data like in this video:
vid

I can't get the groovy to be happy.
It says "cant find constructor".

Q: What do I do? I have been trying for months.

Thanks!

Notifications