SELECT
  ID,
  NAME,
  AUTHOR,
  PUBLISHER,
  PRICE,
  PUBLISH_DATE,
  IMAGE,
  IMAGE_NAME
FROM BOOK
/*BEGIN*/
WHERE
/*IF searchWord != null*/
  NAME LIKE /*searchWord*/'%hoge%' OR AUTHOR LIKE /*searchWord*/'%hoge%' OR PUBLISHER LIKE /*searchWord*/'%hoge%'
/*END*/
/*IF priceMin != null*/
  AND PRICE >= /*priceMin*/0
/*END*/
/*IF priceMax != null*/
  AND PRICE <= /*priceMax*/0
/*END*/
/*END*/
ORDER BY ID DESC;