Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想打印我的数据库中的表结构。 现在我使用 mysql 命令:
DESCRIBE products;
但是如何将此输出转换为 txt 文件?像:
DESCRIBE products; > products.txt
mysql -u username -p -e 'DESCRIBE databasename.tablename' > output.txt