my dog learned polymorphism
The moose likes JDBC and Relational Databases and the fly likes Question about shell script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Question about shell script" Watch "Question about shell script" New topic

Question about shell script

preethi kumar
Ranch Hand

Joined: Jun 04, 2010
Posts: 50

i wanted to insert a row of data into the database using the above shell script. but was unable to do so. please let me know how can i correct the above shell script?
chris webster

Joined: Mar 01, 2009
Posts: 2205

Moved to JDBC forum where you might find some database advice on MySQL.

No more Blub for me, thank you, Vicar.
Jan Cumps

Joined: Dec 20, 2006
Posts: 2543

There is quotes mismatch in the string 'insert into Persons values(1,'nisha','shetty','ibm','bangalore');'

Don't you have to use duoble quotes around the sql statement, as shown here?

OCUP UML fundamental and ITIL foundation
preethi kumar
Ranch Hand

Joined: Jun 04, 2010
Posts: 50
Thanks Jan :-)
subject: Question about shell script
It's not a secret anymore!