Results 1 to 1 of 1
Thread: do i need to add thread and how?
- 04-08-2010, 05:33 AM #1
do i need to add thread and how?
Hi,
i has a table in school DB in mysql named student,
studentid,studentname,class,mark are the columns
all are varchars(25) no autoincerment columns
i has to enter the values in such a way that the entering be next number of studentid
so first i select studentid from student then add 1 to that and show on a non editable text box so the user has to insert the name mark and class,
on inserting there is also a checking that it has already entered or not also,ok
the problem is when 5 users concurrently has taken the application then all of will get the same studentid,because the same qury will executed so.then all the 5 members may click enter button then how can i shedule the studentid in an arranged manner
student
studentid name mark class
1 kkkk 10 5
2 ppp 15 5
now if i take the adding it will show 3 in studentid text box and all the other 4 members also,
i think you got my problem please suggest a valuble reply
the same problem in sandalone as wellas web programme by thread
thanking you all
Similar Threads
-
Difference between Thread.yield() and Thread.sleep() methods
By Nageswara Rao Mothukuri in forum New To JavaReplies: 12Last Post: 07-30-2010, 05:37 PM -
Trigger main thread method from secondary thread?
By DigitalMan in forum Threads and SynchronizationReplies: 8Last Post: 01-26-2010, 02:13 AM -
[SOLVED] Method from one thread called on another thread
By Ypsilon IV in forum Threads and SynchronizationReplies: 7Last Post: 04-24-2009, 02:07 PM -
If JNI thread call the java object in another thread, it will crash.
By skaterxu in forum Advanced JavaReplies: 0Last Post: 01-28-2008, 07:02 AM


LinkBack URL
About LinkBacks

Bookmarks