阅读更多
string sql="select a,b,'常量' as c from table"


注:单引号' ' 很重要,否则编译时会把其看成查询参数,从而提示参数未指定错误。

摘自:http://blog.sina.com.cn/s/blog_4d96ee050100webl.html
<a ></a>

相关文章:

  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2021-12-19
  • 2022-12-23
  • 2021-08-17
猜你喜欢
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案