Q. Which management command is used to show SQL for a migration?

  • (A) sqlmigration
  • (B) migration_sql
  • (C) show_sql
  • (D) printsql
πŸ’¬ Discuss
βœ… Correct Answer: (A) sqlmigration
Explanation: python manage.py sqlmigration shows the SQL statements for a specific migration.
Explanation by: Rakesh Yadav
python manage.py sqlmigration shows the SQL statements for a specific migration.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
96
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rakesh Yadav
Publisher
πŸ“ˆ
95%
Success Rate