How to fetch the last inserted record in a particular table?
Answer Posted / skumar
We can use the query like
SELECT TOP 1 ID FROM table ORDER BY ID DESC
Is This Answer Correct ? | 11 Yes | 2 No |
Post New Answer View All Answers
What is DataReader Object?
How to aggregating data across related tables?
What are the core objects of ADO.NET?
What is the difference between Command and CommandBuilder object?
How to find the given query is optimised one or not?
What is ado.net in mvc?
What is shadow copy?
What is difference between sqldatareader and sqldataadapter?
What is difference between connected and disconnected architecture in ado.net?
What are the parameters that control most of connection pooling behaviors?
What are the steps to connect to a database?
How can you identify whether or not any changes are made to the DataSet object since it was last loaded?
What is the hierarchy of data in databases?
What are the parameters that control most of connection pooling behaviours?
How can we load multiple tables in a dataset?