# COM\_STMT\_SEND\_LONG\_DATA

When data for a specific column is large, it can be sent separately to avoid the limitation of `max_allowed_packet` (see [packet splitting](https://mariadb.com/docs/server/reference/0-packet#packet-splitting)).

Multiple `COM_STMT_SEND_LONG_DATA` commands with the same column ID append the data. `COM_STMT_SEND_LONG_DATA` is sent before [COM\_STMT\_EXECUTE](https://mariadb.com/docs/server/reference/clientserver-protocol/3-binary-protocol-prepared-statements/com_stmt_execute).

## Fields

* [int<1>](https://mariadb.com/docs/server/reference/protocol-data-types#fixed-length-integers) `0x18` `COM_STMT_SEND_LONG_DATA` header.
* [int<4>](https://mariadb.com/docs/server/reference/protocol-data-types#fixed-length-integers) statement id.
* [int<2>](https://mariadb.com/docs/server/reference/protocol-data-types#fixed-length-integers) parameter number.
* [byte\<EOF>](https://mariadb.com/docs/server/reference/protocol-data-types#end-of-file-length-bytes) data.

## Response

Server doesn't send response.

<sub>*This page is licensed: CC BY-SA / Gnu FDL*</sub>

{% @marketo/form formId="4316" %}
