> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# export_records_to_table

### export\_records\_to\_table

<ul>
  <li>
    export\_records\_to\_table(\
    &#x20;table\_name: string,\
    &#x20;remote\_query?: string,\
    &#x20;options?: Record\<string, string>,\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md),\
    ): Promise\<[ExportRecordsToTableResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/ExportRecordsToTableResponse.md)>

    Exports records from source table to the specified target table in an external database.

    #### Parameters

    <ul>
      <li>
        table\_name: string

        Name of the table from which the data will be exported to remote database, in \[schema\_name.]table\_name format, using standard name resolution rules.
      </li>

      <li>
        `Optional`remote\_query: string

        Parameterized insert query to export gpudb table data into remote database.
      </li>

      <li>
        `Optional`options: Record\<string, string>

        Optional parameters.
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[ExportRecordsToTableResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/ExportRecordsToTableResponse.md)>

    Promise\<Types.ExportRecordsToTableResponse> - Promise resolving to the response

    <ul>
      <li>Defined in [src/GPUdb.ts:9072](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/GPUdb.ts#L9072)</li>
    </ul>
  </li>
</ul>

### export\_records\_to\_table\_request

<ul>
  <li>
    export\_records\_to\_table\_request(\
    &#x20;request: [ExportRecordsToTableRequest](https://docs.kinetica.com/content/api/nodejs/interfaces/ExportRecordsToTableRequest.md),\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md),\
    ): Promise\<[ExportRecordsToTableResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/ExportRecordsToTableResponse.md)>

    Exports records from source table to the specified target table in an external database.

    #### Parameters

    <ul>
      <li>
        request: [ExportRecordsToTableRequest](https://docs.kinetica.com/content/api/nodejs/interfaces/ExportRecordsToTableRequest.md)

        Request object containing the parameters for the operation
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[ExportRecordsToTableResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/ExportRecordsToTableResponse.md)>

    Promise\<Types.ExportRecordsToTableResponse> - Promise resolving to the response

    <ul>
      <li>Defined in [src/GPUdb.ts:9044](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/GPUdb.ts#L9044)</li>
    </ul>
  </li>
</ul>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.