conversion

Поиск
Список
Период
Сортировка
От Ken Kline
Тема conversion
Дата
Msg-id 3A99C025.BBF58939@oldbs.com
обсуждение исходный текст
Список pgsql-sql
Hello,
another brain twister, at least for me...

i have a table of varchar and one of the values I want
to insert into another table, one of the columns is
defined as INTEGER in destination table, column...
and none of these statements seem to work
INSERT INTO pledge_classes (semester, year)SELECT pseason, to_number('pyear','9999') from temp;
INSERT INTO pledge_classes (semester, year)SELECT pseason, pyear::integer from temp;
INSERT INTO pledge_classes (semester, year)SELECT pseason, pyear::numeric(4) from temp;



В списке pgsql-sql по дате отправления:

Предыдущее
От: darcy@druid.net (D'Arcy J.M. Cain)
Дата:
Сообщение: Re: Fwd: Re: sum(bool)?
Следующее
От: Ken Kline
Дата:
Сообщение: Re: conversion