## 自定义SQL语句
- sql语句为:
```
select * from user where id={{@id}}
```
- 此sql语句的编码为`my-select-one`
## 调用测试
![](https://oss.showapi.com/doc/3111/7/fd5f9d64bcf9_1612321513431.png?x-oss-process=image/resize,p_100)
其中输入的json串showapi_sql_params,值为:
```
{
"id": 42
}
```
id属性将赋值于这个sql语句:
```
select * from user where id={{@id}}
```
最终执行的sql语句是:
```
select * from user where id=3
```
>使用{{@变量}}的形式,接口会自动判断是否加单引号,并做sql反注射。