Get the type of an SQL statement
get_type(statement)
statement
the first word in the statement
Useful links