- or download this
SELECT f1 AS x1,f2,f3,f4 as x2, (f4= f5) as x3 FROM %t"
- or download this
SELECT x1, f2, f3, x2, x3 FROM ( SELECT f1 AS x1,f2,f3,f4 as x2, (f4=
+f5) as x3 FROM Some_table_2006) UNION (SELECT f1 AS x1,f2,f3,f4 as x2
+, (f4= f5) as x3 FROM Some_tabel_2007)) As Tbl1 ;
- or download this
SELECT f1 AS x1,f2,f3,f4 as x2, (f4= f5) as x3 FROM
- or download this
SELECT x1,f2,f3,x2, x3 FROM
- or download this
SELECT f1,f2,f3,f4 as x2, (f4= f5) as x3 FROM
- or download this
use strict;
use warnings;
...
$s =~ s/,\s*.*?\s+as/,/gi ;
print "OUT: $s\n";
- or download this
OUT: SELECT f1, x2, x3 FROM ....