我在SQL Server中有一个存储过程,期望有3个参数:
prices__get
@cusip varchar(max),
@start_date date = null,
@end_date date = null
我试图使用session.execute调用它,如:
session.execute('prices__get @cusip=?, @start_date=?, @end_date=?', {cusip:'X23939', start_date:None, end_date:None})
也尝试过:
session.execute('prices__get ?,?,?', ['x23939', None,None])
无论如何是否使用会话调用存储过程?
感谢