DaniWeb Forum Index
>
Search Forums
RSS
Search Results
•
•
•
•
Showing results 1 to 1 of 1
Search took
0.01
seconds.
Search:
Posts Made By:
rapture
Save these search results for 24 hours
Forum:
C#
Aug 3rd, 2009
Replies:
12
LastRecord in DB
Views:
320
Posted By
rapture
-1
Re: LastRecord in DB
To get the last record in a SQL database you simply type
SELECT TOP 1 * FROM tableName ORDER BY columnWithYourID DESC
or if you just need the id then
SELECT TOP 1 (columnWithYourID )...
Showing results 1 to 1 of 1
You need to
join our community
in order to build your list of favorite forums. You can visit the
forum index
for a listing of all forums.
Related Forum Features
DaniWeb News Stories
DaniWeb Code Snippets
DaniWeb Tutorials
DaniWeb Product Reviews
DaniWeb White Papers
Forum Search
Latest Posts
Today's Posts
All Forums
Unanswered Threads
All Forums
About Us
|
Contact Us
|
Advertise
|
DaniWeb
|
Acceptable Use Policy
|
©2003 - 2009 DaniWeb® LLC