Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2014
    Posts
    1

    Unanswered: Variable declaration does not work

    I have tried to run below query, but it does not run.

    --#SET TERMINATOR @
    BEGIN ATOMIC
    DECLARE EXAMPLE VARCHAR(15);--
    SET EXAMPLE='R&R';--
    END @


    The line DECLARE EXAMPLE VARCHAR(15);--
    and
    SET EXAMPLE='R&R';--
    give error as
    DB2 for Linux, UNIX, and Windows: ";" is invalid.

    Please let me know if anything wrong?

  2. #2
    Join Date
    Sep 2013
    Location
    India
    Posts
    246
    Which application you are using to run this stmt ? Post the command you are giving.
    ssumit

  3. #3
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    2,514
    Provided Answers: 11
    I would recommend to attend some courses before posting...
    DB2 Essential Training I | Big Data University
    Best Regards, Guy Przytula
    Database Software Consultant
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified
    http://www.infocura.be

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •