Sample Header Ad - 728x90

Confusing db2 output

1 vote
1 answer
1466 views
When type in echo $(db2 -x "select count(*) from dict_area") in bash, I get 446. But when I type in echo $(db2 -x "select count(*) from dict_area";db2 -x "select count(*) from dict_area"), I get SQL1024N A database connection does not exist. SQLSTATE=08003 SQL1024N A database connection does not exist. SQLSTATE=08003 This has nothing to do with my work. I just want to know how does that happen. Can you help me?
Asked by dahui (11 rep)
Dec 5, 2014, 03:45 AM
Last activity: Dec 18, 2014, 03:33 PM