ALTER CONTEXT Syntax
Add Context Table
A context table can be added to a SQL-GPT context.Add Context Table Syntax
<table definition clause>.
Examples
To add theexample.atc_country table to the
example.atc_ctx SQL-GPT context:
Add Context Table Example
Drop Context Table
A context table can be removed from a SQL-GPT context.Drop Context Table Syntax
Examples
To drop theexample.atc_country table from the
example.atc_ctx SQL-GPT context:
Drop Context Table Example
Add Context Samples
Context samples can be added to a SQL-GPT context that has not been configured with any. To add samples to a context already configured with one or more, first drop all existing samples, and then add the new and any previous samples all at once.Add Context Samples Syntax
<sample definition clause>.
Examples
To add a sample query for finding JFK airport’s location to theexample.atc_ctx SQL-GPT context:
Add Context Samples Example
Drop Context Samples
Context samples can be removed from a SQL-GPT context that has been configured with one or more.Drop Context Samples Syntax
Examples
To drop all context samples from theexample.atc_ctx SQL-GPT context:
Drop Context Samples Example
Add Context Rules
Context rules can be added to a SQL-GPT context that has not been configured with any. To add rules to a context already configured with one or more, first drop all existing rules, and then add the new and any previous rules all at once.Add Context Rules Syntax
<rule definition clause>.
Examples
To add a rule for joining theexample.airport_positions table with the
atc_current_position table to the example.atc_ctx SQL-GPT context:
Add Context Rules Example
Drop Context Rules
Context rules can be removed from a SQL-GPT context that has been configured with one or more.Drop Context Rules Syntax
Examples
To drop all context rules from theexample.atc_ctx SQL-GPT context:
Drop Context Rules Example