Teradata Database Message 5586 - 17.10 - 5586 - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - Database Messages

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1096-171K
Language
English (United States)
Message
Random not allowed in inserted column value(s).
Explanation
Use of random function disallowed for either of the cases: 1.) For creating a PI column value in a simple insert statement like, insert t1 (random(1,10),...). 2.) For insert/update of column(PI or non-PI) value(s) through mload. As the random function may produce inconsistent results.
Generated By
OptIns,OptEdIns,OptEdUpd
For Whom
End User.
Notes
None
Remedy
Use insert select if you have to use Random in PI columns insert into t1 select (random(1,10),...);