Determining execution time of queries in SQLite

前端 未结 1 1534
北恋
北恋 2021-02-05 05:57

I am creating a program for analyzing and generating queries. I was curious if there currently exists a method within SQLite such that I could query the time taken for a query

相关标签:
1条回答
  • 2021-02-05 06:20

    From within the sqlite3 command-line program you can do:

    .timer ON
    select * from my_table;
    

    This will print the CPU time taken for the query.

    0 讨论(0)
提交回复
热议问题