Subject | Re: [firebird-support] Could you help me with basic SELECT queries, please? |
---|---|
Author | Markus Ostenried |
Post date | 2011-04-13T18:49:01Z |
On Wed, Apr 13, 2011 at 20:42, Ann Harrison <aharrison@...> wrote:
SELECT C.*, (1+1) FROM CITIES C
But it's better practice to explicitly specify a list of columns instead of "*".
HTH,
Markus
> The statement SELECT *, (1+1) FROM CITIES runs into the standard SQLOr you can use an alias for your table name, like:
> syntax for a select list...
>
> <select list> ::=
> <asterisk>
> | <select sublist> [ { <comma> <select sublist> }... ]
>
> You can either have an unqualified asterisk, or a comma separated
> list.
SELECT C.*, (1+1) FROM CITIES C
But it's better practice to explicitly specify a list of columns instead of "*".
HTH,
Markus