Skip to content

MySQL_TrimQuery

imshooter edited this page Oct 24, 2026 · 1 revision

Remove characters from the end of a query, such as the comma after the last row.

native bool:MySQL_TrimQuery(Query:query, characters);

Parameters

Parameter Description
Query:query Query to cut.
characters How many characters to remove.

Returns

  • true when they were removed.
  • false when the query does not exist.

Remarks

It is meant for the separator after the last row of a list, as the , of (%q, %i), . Removing more characters than the query has empties it.

Related

Clone this wiki locally