How to show CMS static block in only one specified category page in magento

Here, We will explain How to show CMS static block in only one specified category page in magento?

In some cases, We need to show a single static block in one or few categories, instead of all categories or pages. So, here I am explaining how to do this.
First of all, you can achieve this by coding in layout XML. It will show the static block ‘my-sidebar-1’ on right sidebar of category with id ‘1’. Similarly, static block ‘my-sidebar-2’ is displayed on the category page with id ‘2’.

Code: