·如何执行SQL语句(单个返回值)(C#)

 

string a = "_selectcount(*) from 表名";

 object b = this.dbgr._execSQL(a);

  

·如何执行SQL语句(多个返回值)(C#)

 

string sql = "_selectcount(字段一) as 别名一,count(字段二) as 别名二 from 表名";  

System.Data.DataTable dt = this.dbgr.GetDataTable(sql);   

string a = dt.Rows[0]["别名一"].ToString();

string b = dt.Rows[0]["别名二"].ToString();

 

国内顶级流程管理中间件方正飞鸿(www.founderfix.com)版权所有,官网提供免费下载使用。

相关文章:

  • 2022-02-07
  • 2022-12-23
  • 2021-07-05
  • 2021-08-11
  • 2021-05-11
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
猜你喜欢
  • 2022-12-23
  • 2021-08-07
  • 2022-12-23
  • 2022-12-23
  • 2021-09-23
  • 2021-08-02
  • 2021-06-21
相关资源
相似解决方案