How does the SQL Server database view the history of executed SQL statements?

I used the following statement to query, although I found a historical SQL record.

SELECT st.text as sql_statement,
   qs.creation_time as plan_last_compiled,
   qs.last_execution_time as plan_last_executed,
   qs.execution_count as plan_executed_count,
   qp.query_plan
FROM sys.dm_exec_query_stats qs
CROSS APPLY sys.dm_exec_sql_text(qs.plan_handle) st
CROSS APPLY sys.dm_exec_query_plan(qs.plan_handle) qp
ORDER BY total_elapsed_time/execution_count DESC

but because I am a parameterized submitted SQL statement, I can only find statements of similar name=@name and phone=@phone type.

is there a way to find the real value of @ name @ phone?

Jan.12,2022
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bc50d0-30765.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bc50d0-30765.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?