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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

About updating PSQL Database

Status
Not open for further replies.

tanveer91

Programmer
Nov 13, 2001
31
GB
Hi all,

I have written a script to update specific records in a psql database.......my problem is that every time i update a record, the updated records is shown at the bottom of the list on the web broswer.

How can keep the list in its original order after i update records?.........your help is greatly appreciated.
 
in the sql query that pulls the info out of the data base

use the ORDER BY clause to pick a certain order. can be 1 to more elements to order by.

ie
select * from myTable
order by date

hth
Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top