سلام برای گرفتن n سطر آخر جدول از دستور معمول زیر استفاده می کردم
select top(n) from tablename order by id desc
The query has been canceled because the estimated cost of this query (906) exceeds the configured threshold of 800. Contact the system administrator.
آیا کوئری بهینه تری برای دریافت N سطر آخر برای بانک های اطلاعاتی سنگین وجود داره ؟
ممنون
برچسب:
نویسنده: محمد رضا جوادیان