aspose file tools*
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
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: 1479
    
  11

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

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
Runtime.getRuntime().exec(commandToExecute) without promting for enter key to be pressed
porting a .bat file to unix
Command to add lines to multiple files
what shell is this
how to get the return value from java method by shell script