You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
背景:通过一个脚本抽取多个库中的表,json中的tableName、jdbcUrl、where条件都是动态传入的。
python datax.py test.json -p -DtableName=xxx -DjdbcUrl=xxxx -Dwhere=testDate>'2021-4-20' and testDate<'2021-5-20'
问题:日志打出来的where条件为testDate>'2021-4-20' and testDate<'2021-5-20,丢失了最右侧的单引号,导致sql报错。
请问这个应该怎么解决?
Beta Was this translation helpful? Give feedback.
All reactions