dbTalk Databases Forums  

[PHP] 'SERIAL' in pgsql

mailing.database.pgsql-php mailing.database.pgsql-php


Discuss [PHP] 'SERIAL' in pgsql in the mailing.database.pgsql-php forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Archana K N
 
Posts: n/a

Default [PHP] 'SERIAL' in pgsql - 07-16-2012 , 04:23 AM






Hello,

I have a database whose primary key is 'slno' and which is an auto
increment field.I inserted some values to database say upto
" slno - 5". Then I deleted the row with 'slno' 3 . Now I want the to shift
all the rows upward ie 4th row should be third and its 'slno' should also
be 3. I heard that this is not possible.Is there a way to do this other
than to move all rows to another database except the slno.

--
-------------------
regards
archana
--------------------

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.