Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
Facebook
Downloads
Home
>
mailing lists
?How create a one serial decimal(500,0) column or simulate it withbigint multicolumns serial? - Mailing list pgsql-novice
From
Dani
Subject
?How create a one serial decimal(500,0) column or simulate it withbigint multicolumns serial?
Date
January 7, 2018
12:17:29
Msg-id
CAEXvJLfO6-=6jBe+kdSV3eOV4SACttkqYu9A59qjqKE_MBk6-Q@mail.gmail.com
Whole thread
Raw
Responses
Re: ?How create a one serial decimal(500,0) column or simulate it with bigint multicolumns serial?
Re: ?How create a one serial decimal(500,0) column or simulate itwith bigint multicolumns serial?
Re: ?How create a one serial decimal(500,0) column or simulate itwith bigint multicolumns serial?
List
pgsql-novice
Tree view
Hi! All!
I Need create a one decimal serial column or simulate it with multiple columns of bigint.
gaps don't are problem.
pseudo-code:
create table bank (
id0 decimal( 500, 0) not null auto-increment,
etc text
)
or
create table bank (
id0 bigint not null,
id1 bigint not null,
id2 bigint not null,
idn bigint not null,
etc text
primary key(id0, id1, id2, idn),
auto_increment(id0, id1, id2, idn)
)
How a example of behavior (using a range of 1 .. 3)
insert into bank(etc) Values "3*3*3 times 'Thanks'";
select * from bank;
id0 id1 id2 idn text
1 1 1 1 T
1 1 1 2 T
1 1 1 3 T
1 1 2 1 T
1 1 2 2 T
1 1 2 3 T
1 1 3 1 T
1 1 3 2 T
1 1 3 3 T
1 2 1 1 T
etc.
Thanks So Much!!!!
[]'s Dani. :-)
--
"There are many plans in the Human heart, But
is the Lord's Purpose that prevails"
"Existem Muitos planos e desejos no coração Humano, MAS
são os Propósitos do Senhor que prevalecem"
[]'s Dani:-)
pgsql-novice
by date:
Previous
From:
Alvaro Herrera
Date:
05 January 2018, 03:05:27
Subject:
Re: Tablespaces
Next
From:
Andreas Kretschmer
Date:
07 January 2018, 14:27:21
Subject:
Re: ?How create a one serial decimal(500,0) column or simulate it with bigint multicolumns serial?
Есть вопросы? Напишите нам!
Соглашаюсь с условиями обработки персональных данных
I confirm that I have read and accepted PostgresPro’s
Privacy Policy
.
I agree to get Postgres Pro discount offers and other marketing communications.
✖
×
×
Everywhere
Documentation
Mailing list
List:
all lists
pgsql-general
pgsql-hackers
buildfarm-members
pgadmin-hackers
pgadmin-support
pgsql-admin
pgsql-advocacy
pgsql-announce
pgsql-benchmarks
pgsql-bugs
pgsql-chat
pgsql-cluster-hackers
pgsql-committers
pgsql-cygwin
pgsql-docs
pgsql-hackers-pitr
pgsql-hackers-win32
pgsql-interfaces
pgsql-jdbc
pgsql-jobs
pgsql-novice
pgsql-odbc
pgsql-patches
pgsql-performance
pgsql-php
pgsql-pkg-debian
pgsql-pkg-yum
pgsql-ports
pgsql-rrreviewers
pgsql-ru-general
pgsql-sql
pgsql-students
pgsql-testers
pgsql-translators
pgsql-www
psycopg
Period
anytime
within last day
within last week
within last month
within last 6 months
within last year
Sort by
date
reverse date
rank
Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
By continuing to browse this website, you agree to the use of cookies. Go to
Privacy Policy
.
I accept cookies