Make array from Database

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I select a single field from a table of database, like:
Select distinct EmployeeID from Employee.

Have there any convenient to throw the result of select items into a static
array?
or I must iterate throw the select result to add selected item into a
dynamic array?
 
Hi ad,

I'm afraid you must iterate. You could either use an ArrayList and, if needed, use its ToArray method, or create an array based on row count.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top