jdbc提交sql如何获取queryId

我是使用jdbc的方式连接sr提交sql,同一个statement里执行query之后 select last_query_id()拿不到正确的queryId


求教