Can't create Informix stored procedure using ISQL command?

前端 未结 1 613
别那么骄傲
别那么骄傲 2020-12-21 13:22

I\'m having trouble creating this stored procedure on IBM Informix Dynamic Server Version 10.00.FC9 (see Jonathan Leffler\'s answer to this post here) using the \'isql\' com

相关标签:
1条回答
  • 2020-12-21 14:06

    This problem is DB-Access vs ISQL.

    ISQL has a warped sense of humour and thinks that the syntax of SQL still matches what was current with Informix OnLine 4.10 (or, in those days, INFORMIX-OnLine 4.10). Specifically, it doesn't know that stored procedures are made up of multiple statements separated by semi-colons and mis-assumes that SQL statements end at the first semi-colon not in a string or comment.

    Workarounds:

    • Use DB-Access instead of ISQL to create stored procedures.
    • Obtain SQLCMD from the IIUG Software Archive and use that instead.
    • Use 'mkproc' from the SQLCMD software to create stored procedures.

    Of these, the easiest is to use DB-Access (aka dbaccess - found in $INFORMIXDIR/bin where the server software lives).

    0 讨论(0)
提交回复
热议问题