Help for this page

Select Code to Download


  1. or download this
    SELECT f1 AS x1,f2,f3,f4 as x2, (f4= f5) as x3 FROM %t"
    
  2. 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 ;
    
  3. or download this
    SELECT f1 AS x1,f2,f3,f4 as x2, (f4= f5) as x3 FROM
    
  4. or download this
    SELECT x1,f2,f3,x2, x3 FROM
    
  5. or download this
    SELECT f1,f2,f3,f4 as x2, (f4= f5) as x3 FROM
    
  6. or download this
    use strict;
    use warnings;
    ...
    $s =~ s/,\s*.*?\s+as/,/gi ;
    
    print "OUT: $s\n";
    
  7. or download this
    OUT: SELECT f1, x2, x3 FROM ....