Help for this page

Select Code to Download


  1. or download this
    $sql =~ s/
      \bADD\s+CONSTRAINT\s+  # lead-in to clause
      (\w+)\s+               # the constraint name
    ...
    /
      ADD CONSTRAINT $1 FOREIGN KEY (
    /x;