乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      SQL Server如何查看SQL語(yǔ)句的執(zhí)行時(shí)間

       yuelianga 2011-01-02

      SQL Server如何查看SQL語(yǔ)句的執(zhí)行時(shí)間

      http://database.51cto.com  2010-09-06 13:17  tzp_8  博客園  我要評(píng)論(0)
      • 摘要:SQL Server中比較簡(jiǎn)單的查詢(xún)SQL語(yǔ)句執(zhí)行時(shí)間方法,供您參考,希望對(duì)您能夠有所幫助。
      • 標(biāo)簽:SQL Server  語(yǔ)句

      SQL Server數(shù)據(jù)庫(kù)中,如何才能查看SQL語(yǔ)句的執(zhí)行時(shí)間呢?本文將為您介紹查詢(xún)方法,供您參考,希望對(duì)您能夠有所幫助。

      下面這種是SQL Server中比較簡(jiǎn)單的查詢(xún)SQL語(yǔ)句執(zhí)行時(shí)間方法,通過(guò)查詢(xún)前的時(shí)間和查詢(xún)后的時(shí)間差來(lái)計(jì)算的:

      declare @begin_date datetime
      declare @end_date datetime
      select @begin_date = getdate()
      <這里寫(xiě)上你的語(yǔ)句...>
      select @end_date = getdate()
      select datediff(ms,@begin_date,@end_date) as '用時(shí)/毫秒'
       

      2:下面這種方法比較全面,將執(zhí)行每個(gè)語(yǔ)句時(shí)采取的步驟作為行集返回,通過(guò)層次結(jié)構(gòu)樹(shù)的形式展示出來(lái)

      set statistics profile on
      set statistics io on
      set statistics time on
      go
      <這里寫(xiě)上你的語(yǔ)句...>
      go
      set statistics profile off
      set statistics io off
      set statistics time off

        本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買(mǎi)等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評(píng)論

        發(fā)表

        請(qǐng)遵守用戶 評(píng)論公約

        類(lèi)似文章 更多