Re: [PHP-DB] Problem regarding 'select...as...'

Поиск
Список
Период
Сортировка
Искать
От
Vince LaMonica
Тема
Re: [PHP-DB] Problem regarding 'select...as...'
Дата
Msg-id
Pine.WNT.4.21.0006121539160.256-100000@vlamonica.quest.com
Ответ на
Список
Дерево обсуждения
Problem regarding 'select...as...' Bernie Huang <bernie.huang@ec.gc.ca>
Re: Problem regarding 'select...as...' Jesus Aneiros <aneiros@jagua.cfg.sld.cu>
Re: [PHP-DB] Problem regarding 'select...as...' Vince LaMonica <Vince.LaMonica@quest.com>
On 2000-06-12, Bernie Huang stated:

} "select equip_attr[1], equip_attr[2]
} as year, make
} from vehicle_tb;"
} 
} which gives me the following error:
} 
} "ERROR:  Attribute 'make' not found"
} 
} Is there something wrong with my "as" usage?  Thanks

Try: "select equip_attr[1] as year, equip_attr[2] as make"
instead.

HTH,

/vjl/


В списке pgsql-sql по дате отправления
От: Bernie Huang
Дата:
От: Alex
Дата:
Сообщение: Simple search question
FAQ