这段代码大概是1000行,我有5个表。我可以得到比较来源 但它有这些序号。如何在右侧删除这些序号和偶然日期?
1400 -- Engraving Processing
1500 -- Count for Previous Day
1600 Insert into
1700 SELECT count(*) FROM CICCCDAT.OEORH48,CICCCDAT.TRNSTAT2,CICCCDAT.OETRA99
1800 WHERE OHCOM# = TSCOM# AND OHORD# = TSORD#
1900 AND (otCOM# = OHCOM# AND OTORD#= OHORD# AND ottrnc = 'AQC')
2000 AND TSSTAT IN('AEP','BGE')
2100 AND OHORDT IN('COR','COE','COF')
2200 AND OHREQD < replace(char(current date, iso), '-', '') AND OHHLDC = ' ' AND
2300 OHORD# in(SELECT a.TSORD# FROM CICCCDAT.TRNSTAT2 a
2400 WHERE a.tsstat IN('AEP','BGE','EAS','REL','STP'));
2500
2600 -- Quantity Total Previous Day
2700 update ISTLIB.CORCOEx set PROGR3PUN = 07/07/14
2800 (SELECT COALESCE(SUM(OdQty#),0) FROM
2900 CICCCDAT.OEORH48,CICCCDAT.TRNSTAT2,CICDAT.OEORD1
3000 WHERE OHCOM# = TSCOM# AND OHORD# = TSORD# AND OHCOM# = ODCOM# AND OHORD# =
3100 ODORD#
3200 AND TSSTAT IN('AEP','BGE')
3300 AND OHORDT IN('COR','COE','COF')
3400 AND OHREQD < replace(char(current date, iso), '-', '')
3500 AND OHHLDC = ' '
3600 AND ODPRLC = 'ENG'
3700 AND substr(odprt#,1,5) <> 'NOENG' AND OHORD# in(SELECT a.TSORD# FROM
3800 CICCCDAT.TRNSTAT2 a
3900 WHERE a.tsstat IN('AEP','BGE','EAS','REL','STP')));
4000
4100 -- Count for Today
答案 0 :(得分:0)
Many text editors(包括Word和Notepad ++)将允许进行垂直(列)选择。拖动 Alt ,同时拖动要删除的部分,然后点击删除。
答案 1 :(得分:0)
打开PowerShell并输入
(cat YourFileName) | % { $_ -replace " +\d+", "" }
验证完数据后(可能需要更改&#34; + \ d +&#34;),运行
(cat YourFileName) | % { $_ -replace " +\d+", "" } | Set-Content YourFileName
并且您的文件没有数字行前缀。
&#34;偶然日期&#34;必须手动处理,因为机器似乎没有设置模式。