SELECT AI [action] …;
action
is one of RUNSQL | Generated and execute an SQL statement that hopefully does what the prompt requests. This is the default action if action is omitted. |
SHOWSQL | Shows the SQL statement rather than running it. |
EXPLAINSQL | Explains the generated statement in natural language (not explain plan ). |
NARRATE | Send the result of the executed SQL statement back to the LLM and let it describe it. |
CHAT | Let the LLM create a response from the prompt without using SQL. |
action
parameter of dbms_cloud_ai.generate
. dbms_cloud_ai.set_profile
, otherwise, select ai …
throws ORA-00923: FROM keyword not found where expected select ai
need to be quoted as in ordinary strings: select ai Who didn''t order anything last month?
AI
keyword is understood by the select
statement only. select ai
is case sensitive.