Table null is empty

hi

I m executing a shell script in which records are to be fetched from a table. If the sql that is running empty result set it is displaying "table null is empty !". I dont want this msg on the standard output. COuld you please help me in this regard

Hi,
you could to redirect the error output from the mysql query to /dev/null.

could you please how to do that?
i m trying this way
$JAVA icoredp.tools.oracleUnload -c ${CSORDHOME}/conf -d "," -s "$sql2" > errorlog

$JAVA icoredp.tools.oracleUnload -c ${CSORDHOME}/conf -d "," -s "$sql2" 2> /dev/null > errorlog

hope it wil work..