Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[Newbie] table order question

Status
Not open for further replies.

MarkusWolters

Programmer
Nov 19, 2003
3
DE
Hi,

is there any possibility to add data to a table in alphabetical (lets say of coloumn 1) order?

regards Markus
 
you can add it whatever you like, when you retrieve it you can order it! simple SQL rules

SELECT * FROM your_table ORDER BY your_order_field;

the other way is to create VIEW, which will do basicly the same

CREATE VIEW your_view AS SELECT * FROM your_table ORDER BY your_order_field;

and now
SELECT * FROM your_view;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top