-
Notifications
You must be signed in to change notification settings - Fork 4.4k
AI query suggestion
Note: This feature is available in Lite, Enterprise, and Ultimate editions only.
AI Auto Complete helps you finish entire SQL statements based on what you’ve started typing. It works inside the SQL Editor and shows suggestions as ghost text.
-
Enable AI Auto Complete in the SQL Completion preferences.
-
Start writing a query in the SQL Editor.
-
Add a comment above the query to guide the AI.
Example:
-- find flight with flight_id equal or less then 1230 SELECT
Note: You need to place your cursor where you want the query to appear.
-
Right-click anywhere in the Script panel to open the context menu, then select AI commands -> AI Auto Complete. Or use the shortcut:
-
⌥+⌘+→ (macOS).
-
Alt+Ctrl+→ (Windows).

-
-
Do one of the following:
- Press →, Tab, or Enter to insert the suggestion.
- Press Esc to dismiss it.
Tip: To change the background and foreground colors of the suggestion hint, navigate to Window -> Preferences -> User Interface -> Appearance -> Colors and Fonts.
- Getting started
- DBeaver configuration
-
Security
- Connection settings
- Databases support
-
Multi Source Database
- Classic
- Cloud
- Embedded
- File drivers
- Graph
-
Multi Source Database
- Connections
- Data Editor
- SQL Editor
- Entity relation diagrams (ERD)
- Cloud services
- AI Smart Assistance
- Data transfer and schema compare
- Task management
- Integrated tools
- Administration
- DBeaver Editions
- Standalone
- Cloud-hosted
- FAQ
- Development