Wednesday, March 21, 2012

last row

How do I return the last row in a Sql table? I know it must be easy that's why i can't figure it outSELECT TOP 1 * FROM [mytable] ORDER BY [mycolumn] DESC

No comments:

Post a Comment