Professional Web Applications Themes

'insert into' question - MySQL

Hello ! I have this Table : one Field : NUM_AUTO wich is auto_increment and Fields : FIELD1, FIELD2, FIELD3, FIELD4 ... I have this sql "insert" : INSERT INTO myTable (FIELD1, FIELD2) VALUES (VAL1,VAL2) I would like to know the NUM_AUTO for this INSERT, how can I manage that ? (My Table can have similair couple of values (VAL1, VAL2)) thanks !...

Sponsored Links
  1. #1

    Default 'insert into' question

    Hello !

    I have this Table :
    one Field : NUM_AUTO wich is auto_increment
    and Fields : FIELD1, FIELD2, FIELD3, FIELD4 ...

    I have this sql "insert" :

    INSERT INTO myTable (FIELD1, FIELD2) VALUES (VAL1,VAL2)

    I would like to know the NUM_AUTO for this INSERT, how can I manage that ?
    (My Table can have similair couple of values (VAL1, VAL2))


    thanks !
    Sponsored Links
    Claude Guest

  2. #2

    Default Re: 'insert into' question

    Claude (F) wrote: 

    http://dev.mysql.com/doc/refman/5.1/en/connector-j-usagenotes-basic.html#connector-j-examples-autoincrement-select

    --
    ==================
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    net
    ==================
    Jerry Guest

  3. #3

    Default Re: 'insert into' question

    Jerry Stuckle <net> wrote: 
     
    >
    > http://dev.mysql.com/doc/refman/5.1/en/connector-j-usagenotes-basic.html#connector-j-examples-autoincrement-select[/ref]

    Getting the last generated AUTO_INCREMENT value is not Java specific.
    Also the general manual page is much more detailed:

    http://dev.mysql.com/doc/refman/5.0/en/example-auto-increment.html


    XL
    --
    Axel Schwenke, Senior Software Developer, MySQL AB

    Online User Manual: http://dev.mysql.com/doc/refman/5.0/en/
    MySQL User Forums: http://forums.mysql.com/
    Axel Guest

  4. #4

    Default Re: 'insert into' question

    thanks
    Claude Guest

Similar Threads

  1. [MX Kollection] Insert record question
    By G.B. in forum Macromedia Exchange Dreamweaver Extensions
    Replies: 0
    Last Post: July 13th, 08:40 AM
  2. Insert Question
    By LukeDD in forum Coldfusion - Getting Started
    Replies: 6
    Last Post: June 27th, 10:32 PM
  3. MySql insert question.
    By phatnugs420@comcast.net in forum PHP Development
    Replies: 0
    Last Post: October 12th, 08:48 PM
  4. Insert Behavior Question??
    By Kory in forum Macromedia Dreamweaver
    Replies: 0
    Last Post: July 10th, 03:24 PM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139