0

I am new to shell scripting and trying to write some sql operations inside function and based on the output I need to return a value from function . Is it possible to achieve this using shell script ?

I tried to google it but somehow I am not getting anything related to sql operation in function.

Any sample will be appreciable .

3
  • Literally the first google result: stackoverflow.com/questions/19182286/… Commented Jun 8, 2017 at 12:36
  • @JacobH, Hi Jacob the sql statements are working fine in normal script , however will it work withing the function ? Commented Jun 8, 2017 at 12:41
  • Possible duplicate of How to run SQL in shell script Commented Jun 8, 2017 at 12:44

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.