Redirecionando saida de Query SQL para arquivo TXT

  • Post author:
  • Post category:Sem categoria

[[email protected] johnm]$ echo “select * from companies where something = \”No\”” | /usr/local/mysql/bin/mysql -uUSERNAME -pPASSWORD DB_NAME > /tmp/foo.txt;