```c# string sql = "select * from com_list where com_name = '"+变量+"' ";
```
您好,为什么不行,你这个格式是对的,你现在报的什么错?
已经解决了