Should work everywhere except the way of escaping the reserved word "NAME". This script has been tested in MySql.