【发布时间】:2013-12-11 22:57:58
【问题描述】:
我在使用 DateTime 作为参数来处理 sql 查询时遇到问题。
这是我想要的查询:
command.CommandText = "SELECT idGameNumber FROM GameOutcome WHERE GameOutcome.gameDate = <insert DateTime game_time>";
其中 game_time 是 DateTime 对象,Gameoutcome.gameDate 是 DATETIME 数据类型。
我需要在 WHERE 子句中的 = 号右侧放什么?
【问题讨论】: