RaaapuLis Posted October 24, 2008 Report Share Posted October 24, 2008 Sveiki, vai var kaut ka dabut piem no db noteiktas tabulas visslielako id, jeb pedejo kas ticis ierakstits, un tad pieskaitit +1 un tad ievietot jaunu vaicajumu mysql tabulaa ar jauno id? Un ja var ludzu pasakiet ka Link to comment Share on other sites More sharing options...
duplets Posted October 24, 2008 Report Share Posted October 24, 2008 Priekš tam ir domāts auto-increment. Link to comment Share on other sites More sharing options...
Norek Posted October 24, 2008 Report Share Posted October 24, 2008 maksimālo vērtību atgriež MAX() f-ija, bet jā, ir jāizmanto auto-increment. Link to comment Share on other sites More sharing options...
RaaapuLis Posted October 25, 2008 Author Report Share Posted October 25, 2008 Paldies n0r3k, max() bija tiesi tas kas vajadzigs Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now