SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2003
    Location
    Domnican Republic.
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation last record inserted

    I want to know if there is any way i can know the last item i insert on a table, i don't make a select and see the last record because it can cost me trouble when i'm using a relationated table in wich 2 or more users can be inserting data in the same time.

  2. #2
    SitePoint Member Seinfeld's Avatar
    Join Date
    Jun 2004
    Location
    there's no place like 127.0.01
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try "SELECT last_insert_id"


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •