No. You will have to watch for the duplicate key error then issue your SELECT
query.
It'd be quite problematic if that existed since INSERT
and UPDATE
queries are meant to modify data and SELECT
to return a result set. All kinds of drivers/interfaces handle these cases differently for good reason.