Wednesday, October 4, 2017

Get Last Inserted Record from database in sql server



Get Last Inserted Record from database in sql server


select * from data where id=(select MAX(id) from data);

By using above Query we can get the last inserted record form database 

No comments:

Post a Comment

Featured Post

What is JavaScript? What is the role of JavaScript engine?

  The JavaScript is a Programming language that is used for converting static web pages to interactive and dynamic web pages. A JavaScript e...