Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Question about Dynamic cursor!!

Question about Dynamic cursor!!

Scheduled Pinned Locked Moved The Lounge
helpquestion
11 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    liull_1211
    wrote on last edited by
    #1

    I want to create a cursor using a string,the code as below. but it's complied with error.who can tell the solution,thanks!! StringSql := ' select Right.SEQ_NUM, Right.PAY_SYS_CD, HD.TORI_CD from ' || HdTableName || ' HD, ' || RightTableName || ' Right where Right.DENPYO_NUM = DenpyoNum and HD.DENPYO_NUM = Right.DENPYO_NUM '; declare cursor CUR_PAYINTERNALCODE(DenpyoNum in AATCHANGEHD.DENPYO_NUM%TYPE) is --select * from aatchangehd where denpyo_num=DenpyoNum; StringSql;

    M D J W 4 Replies Last reply
    0
    • L liull_1211

      I want to create a cursor using a string,the code as below. but it's complied with error.who can tell the solution,thanks!! StringSql := ' select Right.SEQ_NUM, Right.PAY_SYS_CD, HD.TORI_CD from ' || HdTableName || ' HD, ' || RightTableName || ' Right where Right.DENPYO_NUM = DenpyoNum and HD.DENPYO_NUM = Right.DENPYO_NUM '; declare cursor CUR_PAYINTERNALCODE(DenpyoNum in AATCHANGEHD.DENPYO_NUM%TYPE) is --select * from aatchangehd where denpyo_num=DenpyoNum; StringSql;

      M Offline
      M Offline
      Megan Forbes
      wrote on last edited by
      #2

      I hope you have your flameproof suit on :) Alternatively, for friendly advice, please turn left at the end of the passage and enter the SQL forum


      Look at the world about you and trust to your own convictions. - Ansel Adams
      Meg's World - Blog Photography

      R 1 Reply Last reply
      0
      • M Megan Forbes

        I hope you have your flameproof suit on :) Alternatively, for friendly advice, please turn left at the end of the passage and enter the SQL forum


        Look at the world about you and trust to your own convictions. - Ansel Adams
        Meg's World - Blog Photography

        R Offline
        R Offline
        RChin
        wrote on last edited by
        #3

        An idea just popped in my head ::lightbulb:: What if Chris changed the style of the lounge, so that anyone would immediately know that they are not in a programming friendly area. As annoying as seeing newbies posting these in the lounge, I sometimes have to scroll to the top of the page just to make sure that I am in the right forum.


        I Dream of Absolute Zero

        G W 2 Replies Last reply
        0
        • L liull_1211

          I want to create a cursor using a string,the code as below. but it's complied with error.who can tell the solution,thanks!! StringSql := ' select Right.SEQ_NUM, Right.PAY_SYS_CD, HD.TORI_CD from ' || HdTableName || ' HD, ' || RightTableName || ' Right where Right.DENPYO_NUM = DenpyoNum and HD.DENPYO_NUM = Right.DENPYO_NUM '; declare cursor CUR_PAYINTERNALCODE(DenpyoNum in AATCHANGEHD.DENPYO_NUM%TYPE) is --select * from aatchangehd where denpyo_num=DenpyoNum; StringSql;

          D Offline
          D Offline
          Daniel Turini
          wrote on last edited by
          #4

          Two bad things: 1. A cursor (did I mention you should avoid them?) [edit]Ooops, just now I noticed the '||' for string concat, you're using Oracle[/edit] 2. A programming question on the lounge... Yes, even I am blogging now!

          1 Reply Last reply
          0
          • R RChin

            An idea just popped in my head ::lightbulb:: What if Chris changed the style of the lounge, so that anyone would immediately know that they are not in a programming friendly area. As annoying as seeing newbies posting these in the lounge, I sometimes have to scroll to the top of the page just to make sure that I am in the right forum.


            I Dream of Absolute Zero

            G Offline
            G Offline
            Graham Bradshaw
            wrote on last edited by
            #5

            ... or even take the Lounge off the home page. Perhaps it could be an option in 'My Settings' to pick which forum you see on the right hand side, and for new people who haven't made a choice, it could just be a list of all the forums, to encourage people to pick an appropriate one, and not just post their question in the first forum they see.

            M 1 Reply Last reply
            0
            • G Graham Bradshaw

              ... or even take the Lounge off the home page. Perhaps it could be an option in 'My Settings' to pick which forum you see on the right hand side, and for new people who haven't made a choice, it could just be a list of all the forums, to encourage people to pick an appropriate one, and not just post their question in the first forum they see.

              M Offline
              M Offline
              Megan Forbes
              wrote on last edited by
              #6

              Or may I suggest turning right at the end of the passage for the suggestions forum ;P


              Look at the world about you and trust to your own convictions. - Ansel Adams
              Meg's World - Blog Photography

              1 Reply Last reply
              0
              • L liull_1211

                I want to create a cursor using a string,the code as below. but it's complied with error.who can tell the solution,thanks!! StringSql := ' select Right.SEQ_NUM, Right.PAY_SYS_CD, HD.TORI_CD from ' || HdTableName || ' HD, ' || RightTableName || ' Right where Right.DENPYO_NUM = DenpyoNum and HD.DENPYO_NUM = Right.DENPYO_NUM '; declare cursor CUR_PAYINTERNALCODE(DenpyoNum in AATCHANGEHD.DENPYO_NUM%TYPE) is --select * from aatchangehd where denpyo_num=DenpyoNum; StringSql;

                J Offline
                J Offline
                Jorgen Sigvardsson
                wrote on last edited by
                #7

                My cursors blink. That's how I like them. :) -- Ich bin Joachim von Hassel, und ich bin Pilot der Bundeswehr. Welle: Erdball - F104-G Starfighter

                1 Reply Last reply
                0
                • L liull_1211

                  I want to create a cursor using a string,the code as below. but it's complied with error.who can tell the solution,thanks!! StringSql := ' select Right.SEQ_NUM, Right.PAY_SYS_CD, HD.TORI_CD from ' || HdTableName || ' HD, ' || RightTableName || ' Right where Right.DENPYO_NUM = DenpyoNum and HD.DENPYO_NUM = Right.DENPYO_NUM '; declare cursor CUR_PAYINTERNALCODE(DenpyoNum in AATCHANGEHD.DENPYO_NUM%TYPE) is --select * from aatchangehd where denpyo_num=DenpyoNum; StringSql;

                  W Offline
                  W Offline
                  Wim Jans
                  wrote on last edited by
                  #8

                  This looks like an Oracle question? I could answer it, but doing so will get me banned from codeproject for life... :) Better try it at another forum[^]

                  1 Reply Last reply
                  0
                  • R RChin

                    An idea just popped in my head ::lightbulb:: What if Chris changed the style of the lounge, so that anyone would immediately know that they are not in a programming friendly area. As annoying as seeing newbies posting these in the lounge, I sometimes have to scroll to the top of the page just to make sure that I am in the right forum.


                    I Dream of Absolute Zero

                    W Offline
                    W Offline
                    Wackatronic
                    wrote on last edited by
                    #9

                    Or pay attention to the words in red when submitting a message that says "Please do NOT post programming questions to this forum." Pretty clear to me. Or maybe those people are color blind???
                    Yes, I program in VB6, but only because I use it to fill my addiction to having a dry place to sleep and food to eat!

                    L 1 Reply Last reply
                    0
                    • W Wackatronic

                      Or pay attention to the words in red when submitting a message that says "Please do NOT post programming questions to this forum." Pretty clear to me. Or maybe those people are color blind???
                      Yes, I program in VB6, but only because I use it to fill my addiction to having a dry place to sleep and food to eat!

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #10

                      Have you noticed it's men who always do this ? Something about not taking 'No' for an answer ? ;P The tigress is here :-D

                      W 1 Reply Last reply
                      0
                      • L Lost User

                        Have you noticed it's men who always do this ? Something about not taking 'No' for an answer ? ;P The tigress is here :-D

                        W Offline
                        W Offline
                        Wackatronic
                        wrote on last edited by
                        #11

                        Let's not start pointing gender specific questions!!! ;P Yes, I program in VB, but only to feed my addiction to a warm place to sleep and food to eat!

                        Visit my Code Project blog (Mobile Audio project)[^]

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups