Skip to content

SQL_Parser_Parameterize

高铁 edited this page Oct 8, 2017 · 6 revisions

1. 功能介绍

如果要对SQL做各种统计,通常需要对SQL进行参数化再做统计。比如:

// 原始SQL
select * from t where id = 1
select * from t where id = 2

// 参数化SQL
select * from t where id = ?
Clone this wiki locally