Click here to Skip to main content
15,890,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
one question want to ask .... suppose all are filling bank account form and minimum of 100 persons are clicking save buttons at same time....its web application...so then what happens howmany entries are goes in database???? and whoes entry goes first in database.....is primary key auto-incremented that time???? what is the result how can it done?????
Posted

1 solution

In theory, all of them will go in. In practice, they should all go in, but it may take slightly longer for some than for others , depending ion how many simultaneous connections your server will accept.
Who's goes first? The first to issue the INSERT at the server - it's non-deterministic, particularly across the web.
Is it auto incremented? Yes. Each insert is a single operation - the value will be set and incremented (effectively) in a single operation.
 
Share this answer
 
Comments
pandya purvang 2-Jul-12 15:36pm    
can you explain still in dee and much easy way so i can get perfect answer
barneyman 2-Jul-12 20:30pm    
to paraphrase Griff, and answer your specific questions ...

1. howmany entries are goes in database? - 100
2. whoes entry goes first in database? - random
3. is primary key auto-incremented that time? - yes

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900