我有一个问题,返回的值SqlCommand,我有这个代码:
string sqlSelect = "Select TOP 1 Quotation.SentToSupp as SentToSupp FROM Quotation JOIN Notifications ON Quotation.QuotationId = QuotationID ";
SqlCommand Comm = new SqlCommand(sqlSelect, this.Connection);
Run Code Online (Sandbox Code Playgroud)
sqlSelect查询选择第一个DateTime值.当我打电话给SqlCommand我想要获得这个值(只有一个值).我添加查询和我的连接很好.
但我不知道如何获得我的DateTime价值......必须使用类似的东西ExecuteReader?
先感谢您!!