List:MySQL++« Previous MessageNext Message »
From:Joachim Person Date:March 14 2005 7:35pm
Subject:auto_increment
View as plain text  
How can I handle auto_increments? For instance, having

 

                         user_prescription subscription;

                         subscription.user_id = user_id;

                         subscription.service_id = service_id;

                         query.insert(subscription);

                         query.execute();

 

 

and subscription also has a "id" field which is auto_increment, doesn't
work. The id field gets some seemingly random value. How can I make sure
auto_increment works?



Thread
auto_incrementJoachim Person14 Mar
  • Re: auto_incrementChris Frey14 Mar
    • Re: auto_incrementEarl Miles14 Mar
      • Re: auto_incrementChris Frey15 Mar
        • sql_create in headerdon thompson7 Apr
          • Re: sql_create in headerWarren Young8 Apr
            • Re: sql_create in headerdon thompson8 Apr
          • Re: sql_create in headerWarren Young9 Apr
  • Re: auto_incrementWarren Young15 Mar
    • Re: auto_incrementWarren Young15 Mar