db to variable

Hey, my script perform an operation which would a value from db and then I would assign it to a variable, I have used the "-x" to supress the column header but my variable still show "W 1 result returned", why? Thanks in advance!

You have not specified the db that you are using :stuck_out_tongue:

in most of the cases, informational messages are streamed to stderr.

Hence try 2>/dev/null