尝试将“”转换为“”格式

时间:2018-08-24 07:44:22

标签: c# sql asp.net oracle

我正尝试通过方法中的查询“ select A||','||B AS "AB" from C”,以便执行该查询。

但是问题是我的设计'AB'在get方法中未包含为“ AB”。

dt = conn.Get("select A||','||B AS 'AB' from C");

但是在get方法中,我希望'AB'为“ AB”,以便它将在查询中运行

public DataTable Get(string cmdText, params string[] param)
    {}

我如何将“ AB”转换为“ AB”。任何想法都会受到赞赏。

0 个答案:

没有答案