File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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: 2292

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: 2565

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 :-)
I agree. Here's the link:
subject: Question about shell script
It's not a secret anymore!