SQL*Plus (MOSC)

MOSC Banner

"Generated Always" allowing non numeric data to be saved in number column

edited Jan 11, 2024 1:57PM in SQL*Plus (MOSC) 7 commentsAnswered ✓

I am working on an integration project - I happened to notice "Generated Always" in table creation allows non numeric value to be saved in a NUMBER column though it is no longer possible to query the records afterwards. The fix is to to include a validation in the PL/SQL package that is inserting data into the table, but I would like to know if this a bug or any explanation is available why this is be allowed.

----------------------------------------

SQL*Plus: Release 10.1.0.5.0 - Production on Thu Jan 11 12:18:04 2024

Copyright (c) 1982, 2005, Oracle. All rights reserved.

Connected to:

Oracle Database 12c EE Extreme Perf Release 12.1.0.2.0 - 64bit Production

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center