我正在尝试将查询的持续时间详细信息记录到表中。我遇到的问题是第 8 行。这是因为我需要一种方法来返回从第 2 行和第 3 行创建的 QUERY_ID?
1)Set profiling =1;
2)INSERT INTO Master
3)VALUES ("a12t22h@hotmail.com","efheif","pwoe");
4)INSERT INTO Duration(Status,DURATION)
5)SELECT STATE, FORMAT(DURATION, 6) AS DURATION
6)FROM INFORMATION_SCHEMA.PROFILING;
7)SELECT * FROM INFORMATION_SCHEMA.PROFILING
8)WHERE QUERY_ID = 1;
谢谢