echo "输入提取数据开始日期(年月日时分秒):"
read STime
echo "输入提取数据截止日期(年月日时分秒):"
read ETime
STime=to_date("${STime}" ,'%Y%m%d%H%M%S')
ETime=to_date("${ETime}" ,'%Y%m%d%H%M%S')
sdate=to_date("${STime}" ,'%Y%m%d')
edate=to_date("${ETime}" ,'%Y%m%d')
报错代码
Syntax error at line 23 : `(' is not expected.
------解决方案--------------------
按照报错应该是这里,"${sSTime}" ,个人猜测是变量实际赋值之后编程了比如'xxxx'这样的格式,informix有调试功能不?看看中间结果是怎样的