The forum will experience an outage sometime between February 10 at 7:00pm EST and February 12 at 11:59 EST for installation of security updates. The actual time and duration of the outage are unknown but attempts will be made to minimize the downtime. We apologize for any inconvenience.

Another Oracle feature that I would like see added to is some sort of collections in the procedure language. The ability to have arrays at a minimum would be very beneficial. Oracle's collection handling is very robust with arrays of records, nested tables, non integer indexes that can be indexed on, and more.

I had a case the other day where I had 24 integer variables and need to programatically adjust some of them. Without an array, I had to write a case statement that looked at my index and operated on the correct variable. I was converting code that was using a GT table, so even with the case statement the code was much faster than what I was converting. But it would have been a couple of lines in a loop from 1 to 24, and ended up being a long case statement.

Arrays can also reduce the number of parameters that are used. In the example above I was passing the 24 variables to a stored procedure because I wanted to encapsulate the logic, as it was spread in multiple places throughout the application.

We port a lot of code back and forth between the 2 environments and the more features that are in the SQLA language the better. A lot of really good stuff has been going on with SQL Anywhere over the past few years, but the programming language has remained somewhat static.

asked 16 Nov '09, 17:38

Jon%20Greisz's gravatar image

Jon Greisz
571979
accept rate: 0%

edited 15 Mar '13, 18:57

Mark%20Culp's gravatar image

Mark Culp
22.3k9129262

1

I always figured the reason arrays weren't implemented was because you can use a table like an array. (Mind you, I didn't come to that conclusion until I spent two weeks trying to figure out how to pass an array to a stored procedure.)

(03 Sep '10, 15:51) carolstone

[placeholder answer]

permanent link

answered 05 Aug '10, 16:08

Breck%20Carter's gravatar image

Breck Carter
26.6k418575824
accept rate: 21%

The ARRAY and ROW data type has been implemented in SQL Anywhere version 16 - see the What's New in Version 16 documentation for more information.

permanent link

answered 15 Mar '13, 19:00

Mark%20Culp's gravatar image

Mark Culp
22.3k9129262
accept rate: 40%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×106
×100
×21
×2
×1

question asked: 16 Nov '09, 17:38

question was seen: 1,041 times

last updated: 15 Mar '13, 19:00