fetch out of sequence

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default fetch out of sequence

    Hi,

    I would like to know if there is a similar function with OCI8 (oracle) to
    this one: mysql_data_seek ?

    I would like to do twice:
    while (ocifetch($stmt)) {
    ....
    }

    How can I set the cursor to the first element?

    Thanks your for your help

    Rodolphe




    Rod Guest

  2. Similar Questions and Discussions

    1. Gap Sequence
      I have a problam , is anybody have idea about it? Is any module there which can find and print gap sequence? thanks
    2. sequence of function
      Hi, Can someone tell me why it is happening or what can I do to correct it. I have a datagrid. On pressing it I want to call component function....
    3. Problem with the sequence
      Thanks that should help but what about the rest of the columns can u explain what is "is_cycled" and "cache_value". Thanks in advance. Richard...
    4. Motions in sequence
      All, I am a new user to Director 3D. I am trying to create an interactive model in a GUI where the user has to demonstrate an...
    5. How to show a sequence?
      Hi group, I've got a sequence (in a query): L L L N N L
  3. #2

    Default Re: fetch out of sequence

    On Thu, 20 Nov 2003 09:41:27 +0100, "Rod" <toto@toto.com> wrote:
    >I would like to know if there is a similar function with OCI8 (oracle) to
    >this one: mysql_data_seek ?
    >
    >I would like to do twice:
    >while (ocifetch($stmt)) {
    >...
    >}
    >
    >How can I set the cursor to the first element?
    Scrollable cursors were only introduced in Oracle 9i; as far as I know, the
    PHP interface hasn't been updated to support the new calls to navigate within a
    result set.

    So you can only fetch forwards. If you want to go back, you will have to have
    stored the results in an array yourself, or re-execute the query.

    --
    Andy Hassall (andy@andyh.co.uk) icq(5747695) ([url]http://www.andyh.co.uk[/url])
    Space: disk usage analysis tool ([url]http://www.andyhsoftware.co.uk/space[/url])
    Andy Hassall Guest

  4. #3

    Default Re: fetch out of sequence

    thanks you for your answer.

    Rodolphe

    "Andy Hassall" <andy@andyh.co.uk> wrote in message
    news:0j5qrv4nmrvrlkh35iru2f7ae5ifgdmckm@4ax.com...
    > On Thu, 20 Nov 2003 09:41:27 +0100, "Rod" <toto@toto.com> wrote:
    >
    > >I would like to know if there is a similar function with OCI8 (oracle) to
    > >this one: mysql_data_seek ?
    > >
    > >I would like to do twice:
    > >while (ocifetch($stmt)) {
    > >...
    > >}
    > >
    > >How can I set the cursor to the first element?
    >
    > Scrollable cursors were only introduced in Oracle 9i; as far as I know,
    the
    > PHP interface hasn't been updated to support the new calls to navigate
    within a
    > result set.
    >
    > So you can only fetch forwards. If you want to go back, you will have to
    have
    > stored the results in an array yourself, or re-execute the query.
    >
    > --
    > Andy Hassall (andy@andyh.co.uk) icq(5747695) ([url]http://www.andyh.co.uk[/url])
    > Space: disk usage analysis tool ([url]http://www.andyhsoftware.co.uk/space[/url])

    Rod Guest

  5. #4

    Default fetch out of sequence

    Has anybody experienced problems with an oracle error "fetch out of sequence"
    in the follwing scenario:?
    "select * from external linked table"
    Where external table comes from a machine linked to the main database server.
    This works in a cfquery but if I put it in stored procedure and then call it
    from Coldfusion I get the dreaded out of sequence error.

    Thanks for your help

    ricco95 Guest

  6. #5

    Default Re: fetch out of sequence

    What does your PL/SQL look like? Are you using a FOR UPDATE clause in a cursor by any chance and doing any kind of COMMIT within the cursor loop, etc.?

    Phil
    paross1 Guest

  7. #6

    Default Re: fetch out of sequence

    This error means that a fetch has been attempted from a cursor which is no longer valid. Note that a PL/SQL cursor loop implicitly does fetches, and thus may also cause this error.

    http://www.alphaconfig.com/
    Stifenflaming is offline Junior Member
    Join Date
    Jan 2011
    Location
    India
    Posts
    2

Posting Permissions

  • You may not post new threads
  • You may 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