Re: [GENERAL] how to prevent generating same clipids

2006-04-13 Thread Ian Harding
This problem has been solved, by the use of sequences. If you can't use them as a default, you can use them instead of MAX(clipid) You would use NEXTVAL(clipid_seq) assuming you had first done CREATE SEQUENCE clipid_seq; SELECT SETVAL('clipid_seq', (select MAX(clipid) from whatevertable)); T

Re: [GENERAL] how to prevent generating same clipids

2006-04-11 Thread Martijn van Oosterhout
On Mon, Apr 10, 2006 at 10:43:16PM -0700, [EMAIL PROTECTED] wrote: > Hi >Now we cannot change the field type. Because already our application > is running and thousands of records are already entered. we are getting > same no for clipid when 2 users are entering data at a time. so how to > solv

Re: [GENERAL] how to prevent generating same clipids

2006-04-11 Thread Ragnar
On mán, 2006-04-10 at 22:43 -0700, [EMAIL PROTECTED] wrote: > Hi >Now we cannot change the field type. Because already our application > is running and thousands of records are already entered. we are getting > same no for clipid when 2 users are entering data at a time. so how to > solve the p

Re: [GENERAL] how to prevent generating same clipids

2006-04-11 Thread Scott Marlowe
On Tue, 2006-04-11 at 00:43, [EMAIL PROTECTED] wrote: > Hi >Now we cannot change the field type. Because already our application > is running and thousands of records are already entered. we are getting > same no for clipid when 2 users are entering data at a time. so how to > solve the problem

Re: [GENERAL] how to prevent generating same clipids

2006-04-11 Thread Scott Marlowe
On Tue, 2006-04-11 at 00:43, [EMAIL PROTECTED] wrote: > Hi >Now we cannot change the field type. Because already our application > is running and thousands of records are already entered. we are getting > same no for clipid when 2 users are entering data at a time. so how to > solve the problem

Re: [GENERAL] how to prevent generating same clipids

2006-04-11 Thread v . suryaprabha
Hi Now we cannot change the field type. Because already our application is running and thousands of records are already entered. we are getting same no for clipid when 2 users are entering data at a time. so how to solve the problem ---(end of broadcast)

Re: [GENERAL] how to prevent generating same clipids

2006-04-10 Thread Scott Marlowe
On Mon, 2006-04-10 at 07:02, [EMAIL PROTECTED] wrote: > Hi All, > > I am having the clipid field in my table.In my application i am taking > Max(clipid) and inserting it into the table by incrementing that max > value. so there is a problem when 2 users click sumbit button at a > time. we r getii

[GENERAL] how to prevent generating same clipids

2006-04-10 Thread v . suryaprabha
Hi All, I am having the clipid field in my table.In my application i am taking Max(clipid) and inserting it into the table by incrementing that max value. so there is a problem when 2 users click sumbit button at a time. we r getiing same value . so hoe to solve the problem ---