This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JDBC and the fly likes Question about shell script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Question about shell script" Watch "Question about shell script" New topic
Author

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
Bartender

Joined: Mar 01, 2009
Posts: 1658
    
  14

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


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

Joined: Dec 20, 2006
Posts: 2497
    
    8

Hi,
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
youtube channel
preethi kumar
Ranch Hand

Joined: Jun 04, 2010
Posts: 50
Thanks Jan :-)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Question about shell script