I have a unix shell script variable which is being used inside a script
I just want to fetch value from the database and assign the value to the variable in the shell script.
Main criteria is, i should not login in to the database manually fetch it.
for example say:
x= query_cmd 'select emp_no from employees'
( x = 105667 )
i had a code walk through, where i missed the query_cmd which is an executable. what could that be ? can u please suggest the possible options to fetch the value outside the database ?