Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get ID number problem

Status
Not open for further replies.

angor

Programmer
Sep 25, 2005
12
UA
The problem is that while inserting the sting i need to know 3 more free (not in use yet ID)

exaple
Code:
  name       ID1 ID2 ID3
1 Bil         2   3   1  
2 Bob         0   0   0
3 Michael     0   0   0
5 John        0   0   0
6 Lili        7   9   11
..........................
I'm sending 3 rows simultaneously
Bil 2 3 1
Bob 0 0 0
Michael 0 0 0

How could I know the IDs beforesending to database

Thank you in advance
 
You would have to search the database first. So, you would have to do one query to search the database and then another to create the id based on what you found.

This is a simplified explanation.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top