Using Studio Code Assist - Teradata Studio

Teradata® Studio™ Express User Guide

Product
Teradata Studio
Release Number
20.00
Publication Date
October 2023
Content Type
User Guide
Publication ID
B035-2042-103K
ft:locale
en-US
ft:lastEdition
2026-10-23
dita:mapPath
zpv1696897581767.ditamap
dita:ditavalPath
ft:empty
ft:sourceId
dita
dita:id
wsb1469630620005

Opening Suggestions

  • Use Ctrl + Space to open suggestions at any time.
  • Use a period (.) after a schema or table name to see related suggestions.
  • If Keystroke Activation is on, suggestions appear automatically as you type.

What Gets Suggested

  • Database objects: schemas, tables, views, columns, procedures, functions, macros, triggers, indexes.
  • SQL keywords - SELECT, FROM, WHERE, JOIN, and so on.
  • SQL templates - ready-made SQL patterns you can fill in.
  • Document words - words already in your current editor.

Using the Dot (.) for Navigation

What you type Suggestion you get
myschema. Tables and views in that schema
mytable. Columns in that table
myschema.mytable. myschema.mytable. Columns in that specific table

Using Aliases

Code Assist understands table aliases in your query:
SELECT e.  -- shows columns from the employee table
FROM employee e
JOIN department d ON e.dept_id = d.id
WHERE d.  -- shows columns from the department table

Following are the enhancements in Code Assist.

Faster Suggestions

  • Column information loads only when you need it (for exampl; when you type table.), instead of loading everything at startup. This makes connecting to databases faster, especially for databases with many tables.
  • Suggestions are cached for 5 minutes, hence repeated lookups are instant.

Automatic Refresh after Schema Changes

  • When you run CREATE, ALTER, DROP, or RENAME statements in the SQL Editor, Code Assist automatically picks up the changes. You no longer need to disconnect and reconnect to see updated suggestions.
  • Suggestions are cached for 5 minutes, hence repeated lookups are instant.

Disconnect Cleanup

  • When you disconnect from a database, cached suggestions for that connection are automatically cleared.

Improved Stability

  • Opening multiple SQL Editors on the same connection no longer causes connection issues.
  • Multiple connections can initialize at the same time without interfering with each other.

Following are the troubleshooting tips while using Code Assist.

Troubleshooting

Problem What to do
No suggestions appear Make sure Enable Code Assist is on in preferences and are connected to a database.
Suggestions are outdated after changing tables Suggestions are outdated after changing tables. Run CREATE/ALTER/DROP statement in the SQL Editor (suggestions refresh automatically). If this does not work, then disconnect and reconnect.
First suggestion is slow The first time you use Code Assist on a connection; it loads database information in the background. It is faster after the loading completes.
Column suggestions are missing There may be a brief delay the first time you access a column of a table. Use Ctrl+Space again after a moment.
Keywords are in the wrong case Change the Keyword Insert Case setting in preferences to UPPER, lower, or Default.