- 论坛徽章:
- 0
|
看了这个还是不明白
SQL0348
Message Text: &1 expression not used correctly.
Cause Text: The &1 sequence expression for &2 in &3 is not allowed. A NEXT VALUE or PREVIOUS VALUE sequence expression cannot be specified:
In a CREATE VIEW statement.
In a CREATE FUNCTION statement.
In a CHECK constraint.
In a CREATE TABLE or ALTER TABLE statement that uses a select-statement to define the table. A PREVIOUS VALUE expression cannot be specified in a CREATE TRIGGER statement. A NEXT VALUE expression can only be specified:
In the SELECT clause of the outermost SELECT. It cannot be used if the outermost SELECT uses the DISTINCT keyword, contains a GROUP BY or ORDER BY clause, or is part of a fullselect. It cannot be used in a CASE expression.
In the SELECT clause of the outermost SELECT of a common table expression. It cannot be used if the outermost SELECT uses the DISTINCT keyword, contains a GROUP BY or ORDER BY clause, or is part of a fullselect.
As an expression in the SET clause of an UPDATE. It cannot be used in a subselect in the SET clause of an UPDATE.
As an INSERT value in either the VALUES clause or in the SELECT clause of the fullselect.
As a value in a SET or VALUES statement.
Recovery Text: Remove the NEXT VALUE or PREVIOUS VALUE expression.
SQLCODE or SQLCODEs: -348
SQLSTATE or SQLSTATEs: 428F9 |
|