This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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 Android Security Essentials Live Lessons this week in the Android 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: 1616
    
  13

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: 2491
    
    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 :-)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question about shell script
 
Similar Threads
Command to add lines to multiple files
Runtime.getRuntime().exec(commandToExecute) without promting for enter key to be pressed
how to get the return value from java method by shell script
porting a .bat file to unix
what shell is this