PERFORM statement

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • -

    #1

    PERFORM statement

    is there an equivalent of postgresql's PERFORM statement in mysql?
  • Bill Karwin

    #2
    Re: PERFORM statement

    - wrote:[color=blue]
    > is there an equivalent of postgresql's PERFORM statement in mysql?[/color]

    As far as I can tell, this is part of Postgresql's proprietary stored
    procedure language. I'm not a Postgresql user, so on first glance at
    docs the closest match I can come up with is the CALL statement in MySQL
    5.0 stored procedure language.
    http://dev.mysql.com/doc/mysql/en/call.html

    Why don't you describe what you're trying to do and perhaps someone can
    offer advice on how best to do it with MySQL?

    Regards,
    Bill K.

    Comment

    • -

      #3
      Re: PERFORM statement

      Bill Karwin wrote:[color=blue]
      >
      > Why don't you describe what you're trying to do and perhaps someone can
      > offer advice on how best to do it with MySQL?[/color]

      i have several statements inside a procedure and want to return the
      ROW_COUNT() of the first statment. so in postgresql i can do a perform
      for all statements except the first.

      this can be easily solved by storing the value into a variable. having a
      Perform statement looks neater, though. :)

      Comment

      Working...