You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ShardingSphere SQL parser engine helps users to parse SQL to create the AST (Abstract Syntax Tree) and visit the AST to get SQLStatement (Java Object). Currently, we are planning to enhance the support for SQL Server SQL parsing in ShardingSphere.
This issue is to support more SQL Server sql parsing, as follows:
SELECT DISTINCTuser.FirstName, user.LastName
INTO ms_user
FROM user INNER JOIN (
SELECT*FROM ClickStream WHEREcs.url='www.microsoft.com'
) AS ms
ONuser.user_ip=ms.user_ip
SELECTt.text,
(qs.total_elapsed_time/1000) /qs.execution_countAS avg_elapsed_time,
(qs.total_worker_time/1000) /qs.execution_countAS avg_cpu_time,
((qs.total_elapsed_time/1000) /qs.execution_count ) - ((qs.total_worker_time/1000) /qs.execution_count) AS avg_wait_time,
qs.total_logical_reads/qs.execution_countAS avg_logical_reads,
qs.total_logical_writes/qs.execution_countAS avg_writes,
(qs.total_elapsed_time/1000) AS cumulative_elapsed_time_all_executions
FROMsys.dm_exec_query_stats qs
CROSS apply sys.Dm_exec_sql_text (sql_handle) t
WHEREt.textlike'<Your Query>%'-- Replace <Your Query> with your query or the beginning part of your query. The special chars like '[','_','%','^' in the query should be escaped.ORDER BY (qs.total_elapsed_time/qs.execution_count) DESC
Background
Hi community.
This issue is for #29149.
The ShardingSphere SQL parser engine helps users to parse SQL to create the AST (Abstract Syntax Tree) and visit the AST to get SQLStatement (Java Object). Currently, we are planning to enhance the support for
SQL Server
SQL parsing in ShardingSphere.More details:
https://shardingsphere.apache.org/document/current/en/reference/sharding/parse/
Task
This issue is to support more
SQL Server
sql parsing, as follows:link
link
link
link
link
Process
SQL Server
sql syntax, if not please leave a message under the issue and ignore it;Relevant Skills
g4
fileSQL Server
SQLsThe text was updated successfully, but these errors were encountered: