Hi Mattia, the easiest way is to have the datalab CLI installed on your local computer:
pip install --ignore-installed --no-cache-dir noaodatalab
Then log in once:
datalab login # enter DL username and password
and finally download the table:
datalab query --sql="select * from mydb://mytable" --out=mytable.csv
Let us know if you run into trouble.
Cheers,
Robert