RETURN VALUES ON INTEGERS

Поиск
Список
Период
Сортировка
От Alessandro Rossi
Тема RETURN VALUES ON INTEGERS
Дата
Msg-id Pine.LNX.4.05.9907071423230.12067-100000@sunrise.radiostudiodelta.it
обсуждение исходный текст
Ответы Re: [SQL] RETURN VALUES ON INTEGERS  (Herouth Maoz <herouth@oumail.openu.ac.il>)
RE: [SQL] RETURN VALUES ON INTEGERS  ("John Ridout" <johnridout@ctasystems.co.uk>)
Список pgsql-sql

I have the following DATABASE.

CREATE TABLE codestatus    (id                int primary key,code                int,status                char
);

code is an int number made at least of 6 numbers.
(range from 0 up to 999999)

If i do :

select * from codestatus;

I GET:

id|code|status
--+------+------1| 44111|N    2|   123|S

BUT I WOULD LIKE TO GET

id|code|status
--+------+------1|044111|N    2|000123|S

How could I fix the prbolem and get the values as I ned them out of the
select ?

thanks in advance

Alex




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

Предыдущее
От: Alessandro Rossi
Дата:
Сообщение: RETURN VALUES ON INTEGERS
Следующее
От: Herouth Maoz
Дата:
Сообщение: Re: [SQL] RETURN VALUES ON INTEGERS