mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
Created SQL_Parser_Parameterize (markdown)
@@ -0,0 +1,10 @@
|
||||
# 1. 功能介绍
|
||||
如果要对SQL做各种统计,通常需要对SQL进行参数化再做统计。比如:
|
||||
```sql
|
||||
// 原始SQL
|
||||
select * from t where id = 1
|
||||
select * from t where id = 2
|
||||
|
||||
// 参数化SQL
|
||||
select * from t where id = ?
|
||||
```
|
||||
Reference in New Issue
Block a user