where 1=1
and exists(
select 1 where @book_nm = ''
union all
select 1 where @book_nm <> '' and tb.book_nm like + '%' + @book_nm + '%'
)
where 1=1
and exists(
select 1 where @book_nm = ''
union all
select 1 where @book_nm <> '' and tb.book_nm like + '%' + @book_nm + '%'
)