CREATE PROCEDURE UP_news_GetList
@new_title nvarchar(200),
@new_type nvarchar(25)
AS
SELECT
*
FROM [LI_news]
where (new_title like '%' + @new_title + '%' or @new_title = '')
and new_type in ('0','1','2','3','4','5','6','7','8','9','10') order by id desc
这个存储过程要怎么优化
CREATE PROCEDURE UP_news_GetList@new_title nvarchar(200),@new_type nvarchar(25) AS SELECT * FROM [LI_news] where (new_title like '%' + @new_title + '%' or @new_title = '') and new_type in ('0','1','2','3','4','5','6','7','8','9','10') order by id desc
这个存储过程要怎么优化
- 2 回答
- 0 关注
- 499 浏览
添加回答
举报
0/150
提交
取消