Adding Values to a Select using Query in Custom Script

I have a select (custom field) and I want to add value in it using a query in custom script.
Can anybody tell me the way to do it?

This is very vague. Explain the use case in detail.

What I understand is he wants to fetch the values displayed in select (dropdown) from a database query.

@rmehta
@neeraj_yadav
Yes Mr. Neeraj Yadav is right. I want to fetch values displayed in select from a database query.

Regards
Ruchin Sharma