脚本输入时间有关问题
脚本输入时间问题
代码如下,要求时间精确到时分秒,找不到格式,请各位指导一下
DBDATE=Y4MD-
export DBDATE
echo "输入提取数据开始日期(年月日):"
read STime
echo "输入提取数据截止日期(年月日):"
read ETime
--STime='2014-07-01 00:00:00'
--ETime='2014-07-20 00:00:00'
sdate=${STime}
edate=${ETime}
------解决方案--------------------
http://publib.boulder.ibm.com/infocenter/idshelp/v10/index.jsp?topic=/com.ibm.sqlr.doc/sqlrmst109.htm
http://stackoverflow.com/questions/2923223/informix-datetime-manipulation
http://publib.boulder.ibm.com/infocenter/idshelp/v10/index.jsp?topic=/com.ibm.oledb.doc/oledb34.htm
我没用过,只能帮你找找资料
代码如下,要求时间精确到时分秒,找不到格式,请各位指导一下
DBDATE=Y4MD-
export DBDATE
echo "输入提取数据开始日期(年月日):"
read STime
echo "输入提取数据截止日期(年月日):"
read ETime
--STime='2014-07-01 00:00:00'
--ETime='2014-07-20 00:00:00'
sdate=${STime}
edate=${ETime}
------解决方案--------------------
http://publib.boulder.ibm.com/infocenter/idshelp/v10/index.jsp?topic=/com.ibm.sqlr.doc/sqlrmst109.htm
http://stackoverflow.com/questions/2923223/informix-datetime-manipulation
http://publib.boulder.ibm.com/infocenter/idshelp/v10/index.jsp?topic=/com.ibm.oledb.doc/oledb34.htm
我没用过,只能帮你找找资料