in reply to Re^2: replace string from Command Line (updated)
in thread replace string from Command Line
I am trying to update my sql which was written for Teradata DB to be compatible to the DVT. DVT does not accept CAST(CAST(hs_date AS DATE FORMAT 'YYYYMMDD') AS CHAR(08)) as hs_date and only accepts FORMAT_DATE(hs_date, 'YYYYMMDD') as hs_date. I have more than 75 scripts which need to be replaced and compatible to DVT. I have identified these scripts and rather than open each script and replace the string, I thought I could do this from the command line
..... $sql = "select CAST(CAST(hs_date AS DATE format 'YYYYMMDD') AS CHAR(08 +)) as hs_date, " . "device, " . "thrshld as CPU_threshold, " . ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: replace string from Command Line (updated)
by AnomalousMonk (Archbishop) on Oct 13, 2020 at 21:30 UTC |