回复 5# Batcher
感谢@Batcher的指导,功能已全部实现!附上代码,共享~- for /f "delims=" %%a in ('echo select date from product where productid^='01'^; ^| sqlplus product/qazwsx123@productinfo ^| findstr [0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]') do(
- set date=%%a
- )
- set ldate=%date: =%
- echo DB中的日期是%ldate%
复制代码
|