在 ssis 包中,我有String type variable V2
内部表达式属性,我正在编写以下 sql 查询
"select * from mytable where date = " + @[System::StartTime]
但这给了我一个错误:
The data types "DT_WSTR" and "DT_DATE" are incompatible for binary operator "+". The operand types could not be implicitly cast into compatible types for the operation. To perform this operation, one or both operands need to be explicitly cast with a cast operator.
Attempt to set the result type of binary operation ""select * from table where date = " + @[System::StartTime]" failed with error code 0xC0047080.
即使我也尝试过,(DT_WSTR) @[System::StartTime]
但仍然没有任何建议?