Fix create statement for export of view as table. Thanks to ntlis for the report.