Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Anywhere Server - SQL Usage » Queries and data modification » Queries

 

The SELECT list: Specifying columns

The SELECT list comprises one or more objects from which to query data. The SELECT list commonly consists of a series of column names separated by commas, or an asterisk operator that represents all columns. More generally, the SELECT list can include one or more expressions, separated by commas. There is no comma after the last column in the list, or if there is only one column in the list.

The general syntax for the SELECT list looks like this:

SELECT expression [, expression  ]...

If any table or column name in the list does not conform to the rules for valid identifiers, you must enclose the identifier in double quotes.

The SELECT list expressions can include * (all columns), a list of column names, character strings, column headings, and expressions including arithmetic operators. You can also include aggregate functions.

 See also

Selection of all columns from a table
Selection of specific columns from a table
Renamed columns in query results
Character strings in query results
Computed values in the SELECT list
Elimination of duplicate query results