1
I want to insert images and I want each record to have at most 100M, if this value is exceeded should be returned an error in the database itself.
For example illustration of the problem: (in the same way that error is returned if we try to insert a 35-character string in a varchar(30) column, it must be done with the larger image of 100M).
So if the image sent is larger than 100M the database should report the error and reject the record, I will use the following table as an example and the respective error generated:
CREATE TABLE imagem
(
ID NUMBER(5) NOT NULL,
NOME VARCHAR2(50),
IMG BLOB(100M)
)
Error at line 1 ORA-00907: Missing right parenthesis
I tested it here and it worked, thank you!
– Harisson Ford A. R.
I had already tried in a similar way by following the tutorial on the link: http://www.freelists.org/post/oracle-l/Setting-maximum-size-of-a-blob-data-type,8
– Harisson Ford A. R.
But if you can explain in more detail for a better understanding I appreciate.
– Harisson Ford A. R.
I added a better explanation for the solution of the problem ;)
– David
Thank you @David!
– Harisson Ford A. R.
@Harissonforda.R., could you mark as solved? On the left side has a symbol of , click. This will indicate that this is the answer to your question. Thank you
– David