mysql -u username -p -e 'DESCRIBE databasename.tablename' > output.txt
MySQL DESCRIBE INTO OUTFILE with windows command-prompt
-
20-06-2023 - |
Pergunta
I want to print the structure of a table fomr my database.
Now I use the mysql command:
DESCRIBE products;
But how do I get this output into a txt file? Like:
DESCRIBE products; > products.txt
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow