blob: ae237111873f972a3191f0486de432d6d9e9ed5c [file] [log] [blame]
---
title: Working with File-Based External Tables
---
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
External tables provide access to data stored in data sources outside of HAWQ as if the data were stored in regular database tables. Data can be read from or written to external tables.
An external table is a HAWQ database table backed with data that resides outside of the database. An external table is either readable or writable. It can be used like a regular database table in SQL commands such as `SELECT` and `INSERT` and joined with other tables. External tables are most often used to load and unload database data.
Web-based external tables provide access to data served by an HTTP server or an operating system process. See [Creating and Using Web External Tables](g-creating-and-using-web-external-tables.html#topic31) for more about web-based tables.
- **[Accessing File-Based External Tables](../../datamgmt/load/g-external-tables.html)**
External tables enable accessing external files as if they are regular database tables. They are often used to move data into and out of a HAWQ database.
- **[gpfdist Protocol](../../datamgmt/load/g-gpfdist-protocol.html)**
- **[gpfdists Protocol](../../datamgmt/load/g-gpfdists-protocol.html)**
- **[Handling Errors in External Table Data](../../datamgmt/load/g-handling-errors-ext-table-data.html)**