🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.delphi.bazy-danych
Article #101

Re: Id w sieci

#101
From: Tomasz Rubaj
Date: Thu, 01 Apr 1999 10:21
14 lines
1052 bytes
>   Przykladowo -- dopisywane sa do bazy mieszkancow Torunia dwie osoby.
> Kazda z nich musi miec unikalny numer Id.
> 
>   Jeszcze inaczej -- chodzi mi o wlasnoreczny, dzialajacy poprawnie,
> autoincrement.
> 
W sql mozna to zrobic tak:
update tablica_numerow set maxnumer=maxnumer+1;
// zwiekszamy i jedn blokujemy rekord
select maxnumer from tablica_numerow;
commit;
Tablica z numeracja ma 1 wiersz.

TRubaj
Technical Details
Message-ID: <370348A2.8140D131@ajax.umcs.lublin.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!agh.edu.pl!polsl.gliwice.pl!orion.cst.tpsa.pl!news.nask.pl!uw.edu.pl!lublin.pl!not-for-mail
References: <370333dc.5799300@rymunda.torun.pdi.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!agh.edu.pl!polsl.gliwice.pl!orion.cst.tpsa.pl!news.nask.pl!uw.edu.pl!lublin.pl!not-for-mail
From: Tomasz Rubaj <trubaj_NoSpam@ajax.umcs.lublin.pl>
Newsgroups: pl.comp.lang.delphi.bazy-danych
Subject: Re: Id w sieci
Date: Thu, 01 Apr 1999 12:21:22 +0200
Lines: 14
Message-ID: <370348A2.8140D131@ajax.umcs.lublin.pl>
References: <370333dc.5799300@rymunda.torun.pdi.net>
NNTP-Posting-Host: pc209.freeland.lublin.pl
Mime-Version: 1.0
X-Mailer: Mozilla 4.5 [en] (Win95; I)
X-Accept-Language: en
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit