1.

How can the value of recently generated sequence number be obtained?(a) LAST_INSERT_ID()(b) LATEST_INSERT_ID()(c) INITIAL_INSERT_ID()(d) INSERT_ID()I got this question in class test.My question is taken from Internal Security: Preventing Unauthorized Filesystem Access topic in chapter Access Control and Security of MySQL

Answer»

Correct choice is (a) LAST_INSERT_ID()

For explanation I would say: The value of most recently GENERATED sequence number can be OBTAINED by calling the LAST_INSERT_ID() function. This ENABLES to reference the AUTO_INCREMENT value in the SUBSEQUENT statement.



Discussion

No Comment Found

Related InterviewSolutions