🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.bazy-danych
Article #194938

Re: Relacja wielu do wielu w mySQL/MariaDB

#194938
From: Borneq
Date: Tue, 03 May 2016 11:34
9 lines
1394 bytes
W dniu 03.05.2016 o 13:14, M.M. pisze:
> Po drugie, osobiście polecam zawsze zdefiniowanie klucza bigint
> jako klucza głównego w każdej tabeli, nawet jeśli istnieje 'naturalny
> klucz' typu pesel, albo Twój hash.

BigInt z autoinkrementacją? A może zamiast tego klucz na dwa pola int: 
numer bloku i numer transakcji w bloku - będzie po kolei.
A może tworzyć jeden większy numer: int numeru bloku + int transakcji w 
bloku = 64 bitowe?
Technical Details
Message-ID: <nga2cs$ng5$2@node1.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <ng9u9e$j6l$1@node1.news.atman.pl> <d9c69035-f012-4347-89b3-4fb0df96ee3c@googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: Borneq <borneq@antyspam.hidden.pl>
Newsgroups: pl.comp.bazy-danych
Subject: Re: Relacja wielu do wielu w mySQL/MariaDB
Date: Tue, 3 May 2016 13:34:52 +0200
Organization: ATMAN - ATM S.A.
Lines: 10
Message-ID: <nga2cs$ng5$2@node1.news.atman.pl>
References: <ng9u9e$j6l$1@node1.news.atman.pl> <d9c69035-f012-4347-89b3-4fb0df96ee3c@googlegroups.com>
NNTP-Posting-Host: 91.239.205.105
Mime-Version: 1.0
X-Trace: node1.news.atman.pl 1462275292 24069 91.239.205.105 (3 May 2016 11:34:52 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Tue, 3 May 2016 11:34:52 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0
In-Reply-To: <d9c69035-f012-4347-89b3-4fb0df96ee3c@googlegroups.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit