| From: | Devrim GUNDUZ <devrim(at)CommandPrompt(dot)com> |
|---|---|
| To: | Erkin Tek <erkintek(at)fotograf(dot)web(dot)tr> |
| Cc: | pgsql-tr-genel(at)postgresql(dot)org |
| Subject: | Re: mysql_insert_id |
| Date: | 2006-12-04 12:29:04 |
| Message-ID: | 1165235344.2874.1.camel@laptop.gunduz.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-tr-genel |
Merhaba,
On Mon, 2006-12-04 at 13:18 +0200, Erkin Tek wrote:
> Ben onu "select nextval('bir_seq')" ile önce id alıp, sonra buna göre
> "insert" yaparak çözmüştüm.
> Ama sanki "bir_seq" sequence'i işlem hatalı gitsede bir artacak gibi
> geldi.
Doğru. nextval() her halikarda sequence'ı arttırır.
Eğer arada boşluk olmasını istemiyorsanız; size şunu da önerebilirim:
http://www.varlena.com/GeneralBits/130.php
Saygılar,
--
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Volkan YAZICI | 2006-12-04 13:40:40 | Re: mysql_insert_id eşdeniğ |
| Previous Message | Erkin Tek | 2006-12-04 11:18:47 | Re: mysql_insert_id |