Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JDBC and Relational Databases
Question about shell script
preethi kumar
Ranch Hand
Posts: 50
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
mysql -h test10.tutorvista.com -u root -password tutorvista -D test -port 3306 -e 'insert into Persons values(1,'nisha','shetty','ibm','bangalore');'
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
Posts: 2407
36
I like...
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Moved to
JDBC
forum where you might find some database advice on MySQL.
No more Blub for me, thank you, Vicar.
Jan Cumps
Bartender
Posts: 2661
19
I like...
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
preethi kumar
Ranch Hand
Posts: 50
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks Jan :-)
Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
how to get the return value from java method by shell script
porting a .bat file to unix
what shell is this
Runtime.getRuntime().exec(commandToExecute) without promting for enter key to be pressed
Command to add lines to multiple files
More...