Select an intelligent template to enter predefined SQL code, including automatically determined table columns, into a SQL file or procedural object at the desired location.
Intelligent templates eliminate the need to manually enter column names in SQL File Editor by automatically presenting table columns for a given table name. Intelligent templates come in two options:
Option | Description |
---|---|
With declared variables | Automatically populates the column names and the where clause. It uses the primary key or the check constraint for the where clause condition. It also adds the query within a begin-end block so that the primary key or the check constraint variables defined are local to the query. BEGIN DECLARE @PK_au_id_var id SELECT @PK_au_id_var = 10001 SELECT au_id, au_lname, au_fname, phone, address, city, state, country, postalcode FROM authors WHERE au_id = @PK_au_id_var END |
Without declared variables | Automatically populates the column names and the where clause. It uses the primary key or the check constraint for the where clause condition, but does not declare the primary key or check constaint local variables. SELECT au_id, au_lname, au_fname, phone, address, city, state, country, postalcode FROM authors WHERE au_id = 10001 |
Send your feedback on this help topic to Sybase Technical Publications: pubs@sybase.com
Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.