|
Db2 for z/OS® provides a set of SYSDUMMYx catalog tables.
Db2 for z / OS® fornece um conjunto de tabelas de catálogo SYSDUMMY x.
The last character of the table name identifies the associated encoding scheme as follows:
O último caractere do nome da tabela identifica o esquema de codificação associado da seguinte maneira:
- SYSIBM.SYSDUMMY1 uses the EBCDIC encoding scheme.
- SYSIBM.SYSDUMMYE uses the EBCDIC encoding scheme.
- SYSIBM.SYSDUMMYA uses the ASCII encoding scheme.
- SYSIBM.SYSDUMMYU uses the UNICODE encoding scheme.
- SYSIBM.SYSDUMMY1 usa o esquema de codificação EBCDIC.
- SYSIBM.SYSDUMMYE usa o esquema de codificação EBCDIC.
- SYSIBM.SYSDUMMYA usa o esquema de codificação ASCII.
- SYSIBM.SYSDUMMYU usa o esquema de codificação UNICODE.
Although the SYSDUMMYx tables are implemented as catalog tables, they are similar to sample tables, and are used in some examples in the Db2 for z/OS documentation.
Embora as tabelas SYSDUMMYx sejam implementadas como tabelas de catálogo, elas são semelhantes às tabelas de amostra e são usadas em alguns
exemplos na documentação do Db2 para z/OS.
You can use any of the SYSDUMMYx tables when you need to write a query, but no data from a table is referenced. In any query, you must specify a table reference in
the FROM clause, but if the query does not reference any data from the table, it does not matter which table is referenced in the FROM clause.
Each of the SYSDUMMYx tables contains one row, so a SYSDUMMYx table can be referenced in a SELECT INTO statement without the need for a predicate to limit the
result to a single row of data.
Você pode usar qualquer uma das tabelas SYSDUMMYx quando precisar escrever uma consulta, mas nenhum dado de uma tabela é referenciado.
Em qualquer consulta, você deve especificar uma referência de tabela na cláusula FROM, mas se a consulta não fizer referência a nenhum dado da tabela, não importa
qual tabela é referenciada na cláusula FROM.
Cada uma das tabelas SYSDUMMY x contém uma linha, portanto, uma tabela SYSDUMMY x pode ser referenciada em uma instrução SELECT INTO sem a necessidade de um
predicado para limitar o resultado a uma única linha de dados.
For example, when you want to retrieve the value of a special register or global variable, you can use a query that references a SYSDUMMYx table.
Por exemplo, quando você deseja recuperar o valor de um registro especial ou variável global, você pode usar uma consulta que faz referência
a uma tabela SYSDUMMY x.
SELECT CURRENT PATH -- Retrieve the value of a special register
INTO :myvar
FROM SYSIBM.SYSDUMMY1;
SELECT TEMPORAL_LOGICAL_TRANSACTION_TIME -- Retrieve the value of a special register
INTO :myvar
FROM SYSIBM.SYSDUMMY1;
Sometimes when Db2 for z/OS processes an SQL statement, the statement is rewritten, and a reference to a SYSDUMMYx table is added.
For example, some of the internal rewrites that result in adding a reference to a SYSDUMMYx table are for processing the search condition of a trigger, or the SQL
PL control statements IF, REPEAT, RETURN, or WHILE.
In these situations, the privilege set must include the SELECT privilege on the SYSDUMMYx table that is referenced.
Às vezes, quando o Db2 para z/OS processa uma instrução SQL, a instrução é reescrita e uma referência a uma tabela SYSDUMMYx é incluída.
Por exemplo, algumas das reescritas internas que resultam na adição de uma referência a uma tabela SYSDUMMYx são para processar a condição de pesquisa de um gatilho
ou as instruções de controle SQL PL IF, REPEAT, RETURN ou WHILE.
Nessas situações, o conjunto de privilégios deve incluir o privilégio SELECT na tabela SYSDUMMYx referenciada.
© Copyright IBM Corp.
|