Hello, syahida zainal, and welcome to the Ranch!
Indexing a table is something that is done on the server side as an administrator. Are you able to administer this database? What database type is this? I don't know of any way to index a table as a client.
Concerning your post: if you are posting code, be sure to
UseCodeTags (that's a link).