-
COM_QUERY
: -
A
COM_QUERY
is used to send the server a text-based query that is executed immediately.The server replies to a
COM_QUERY
packet with aCOM_QUERY
Response.The length of the query-string is a taken from the packet length - 1.
- Payload
1 [03] COM_QUERY string[EOF] the query the server shall execute
- Fields
command_id (1) --
0x03
COM_QUERY
query (string.EOF) -- query_text
- Implemented By
- Returns
- Example
21 00 00 00 03 73 65 6c 65 63 74 20 40 40 76 65 !....select @@ve 72 73 69 6f 6e 5f 63 6f 6d 6d 65 6e 74 20 6c 69 rsion_comment li 6d 69 74 20 31 mit 1