|
|
|
12c select .. from table ( package collection)
|
|||
|---|---|---|---|
|
#18+
Господа, подскажите пожалуйста ссылку на документацию. Не могу найти, где описана table function для PLSQL - select * from table (collection). А то я вижу что есть в 12-ке возможность использовать nested table объявленный в пакете, а не как раньше object - type на уровне базы, но в упор не могу найти это в документации. Или я путаю что-то и всегда можно было выбирать в пакете из пакетной же коллекции оператором table? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 30.09.2014, 17:54 |
|
||
|
12c select .. from table ( package collection)
|
|||
|---|---|---|---|
|
#18+
12сИли я путаю что-то и всегда можно было выбирать в пакете из пакетной же коллекции оператором table? Можно было. Но не всегда. И при этом все равно неявно создается тип. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 30.09.2014, 18:12 |
|
||
|
12c select .. from table ( package collection)
|
|||
|---|---|---|---|
|
#18+
New Features Guide 2.1.4.12 PL/SQL-Specific Data Types Allowed Across the PL/SQL-to-SQL Interface Through Oracle Database 11g Release 2 (11.2), when PL/SQL invoked SQL, only values with data types supported by SQL could be bound. This restriction applied even when the called SQL was a PL/SQL anonymous block. This restriction is removed in Oracle Database 12c Release 1 (12.1). For example, a PL/SQL subprogram with a formal parameter whose data type is BOOLEAN can now be invoked dynamically using an anonymous block. Other restrictions are also removed. The table operator can now be used in a PL/SQL program on a collection whose data type is declared in PL/SQL. This also allows the data type to be a PL/SQL associative array. (In prior releases, the collection's data type had to be declared at the schema level.) The removal of these restrictions increases the power of expression and the usefulness of PL/SQL. In particular, the extended flexibility of the table operator allows code written to run other vendors' stored procedure languages to be easily migrated to PL/SQL. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 30.09.2014, 18:12 |
|
||
|
12c select .. from table ( package collection)
|
|||
|---|---|---|---|
|
#18+
уувуукукуку12сИли я путаю что-то и всегда можно было выбирать в пакете из пакетной же коллекции оператором table? Можно было. Но не всегда. И при этом все равно неявно создается тип. в 12-ке не создается? ..... stax ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 30.09.2014, 18:19 |
|
||
|
12c select .. from table ( package collection)
|
|||
|---|---|---|---|
|
#18+
stax..уувуукукукупропущено... Можно было. Но не всегда. И при этом все равно неявно создается тип. в 12-ке не создается? ..... stax Наверное создается или может какой механизм обходной придумали ) С 12 не встречался. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 30.09.2014, 18:23 |
|
||
|
12c select .. from table ( package collection)
|
|||
|---|---|---|---|
|
#18+
-2-, Точно, спасибо большое, читал как-то new featches и пропустил. А сейчас по поиску не смог найти . Плохо значит искал. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 30.09.2014, 18:24 |
|
||
|
12c select .. from table ( package collection)
|
|||
|---|---|---|---|
|
#18+
-2-New Features Guide 2.1.4.12 PL/SQL-Specific Data Types Allowed Across the PL/SQL-to-SQL Interface Through Oracle Database 11g Release 2 (11.2), when PL/SQL invoked SQL, only values with data types supported by SQL could be bound. This restriction applied even when the called SQL was a PL/SQL anonymous block. This restriction is removed in Oracle Database 12c Release 1 (12.1). For example, a PL/SQL subprogram with a formal parameter whose data type is BOOLEAN can now be invoked dynamically using an anonymous block. Other restrictions are also removed. The table operator can now be used in a PL/SQL program on a collection whose data type is declared in PL/SQL. This also allows the data type to be a PL/SQL associative array. (In prior releases, the collection's data type had to be declared at the schema level.) The removal of these restrictions increases the power of expression and the usefulness of PL/SQL. In particular, the extended flexibility of the table operator allows code written to run other vendors' stored procedure languages to be easily migrated to PL/SQL. в 12-ке отработает? Код: plsql 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. ...... stax ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 30.09.2014, 19:03 |
|
||
|
12c select .. from table ( package collection)
|
|||
|---|---|---|---|
|
#18+
12c-2-, Точно, спасибо большое, читал как-то new featches и пропустил. А сейчас по поиску не смог найти . Плохо значит искал. new fetches maybe ? :) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 30.09.2014, 19:28 |
|
||
|
12c select .. from table ( package collection)
|
|||
|---|---|---|---|
|
#18+
stax..в 12-ке отработает? Код: plsql 1. RTFM More PL/SQL-Only Data Types Can Cross PL/SQL-to-SQL Interface (FAQ) :The PL/SQL-only data type must be either predefined (like BOOLEAN in Example 7-2) or declared in a package specification (like the record in Example 7-3). ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.10.2014, 08:26 |
|
||
|
12c select .. from table ( package collection)
|
|||
|---|---|---|---|
|
#18+
а так отработает. Код: plsql 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 10.01.2017, 11:01 |
|
||
|
|

start [/forum/topic.php?fid=52&fpage=182&tid=1886695]: |
0ms |
get settings: |
6ms |
get forum list: |
14ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
54ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
28ms |
get tp. blocked users: |
1ms |
| others: | 208ms |
| total: | 324ms |

| 0 / 0 |
