how can i sort database
-
ace300 wrote:
how can i sort data base in c#
what do you mean by sorting a database? a database holds tables, in no particular order. And each table holds rows, in no particular order. Getting data out of a database in some sorted way is to be handled by the individual query, not by the database overall. :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
-
I concur with Luc. You don't "sort" a database, you specify that you want the returned data from a query to be "sorted". General SQL syntax: Select Field1, Field2 from Table1 Where ... Order by Field1 The important thing here is the "order by" clause of the select query.
-
Do you mean Indexing? Google it!
♫ 99 little bugs in the code, 99 bugs in the code We fix a bug, compile it again 101 little bugs in the code ♫