Click here to Skip to main content
16,012,173 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In php there is a code to access all value of a database column by using the following code:


while($rows=mysql_fetch_array($qry_result)
{
// what to want to do
}

but how can I do it in c#.. please help. thanks in advance
Posted

1 solution

Refer: Retrieving Data Using a DataReader[^]
If you want the sum of a numeric column in sql, refer: sql_func_sum[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900