1 year ago

#75515

test-img

Andy

Is there a way to run a db2 command without logging into the console?

I know that for mysql if I run:

mysql (db name) -e "select x from table;" 

from the linux command line i can retrieve the result. So I don't have to connect to the db

I'm trying to find a way to do it for db2. Everything I find indicates I'd need to do it from a bash script, which I don't want to do because I'd have to deploy that script to 700+ servers.

Is there a method that's like the mysql function that allows for this for db2?

database

db2

0 Answers

Your Answer

Accepted video resources