Where p is a precision value; s is a scale value. For example, numeric(6,2) is a number that has 4 digits before the decimal and 2 digits after the decimal.
DECLARE
V_PA VARCHAR2 :=’a’; <== error, ORA-06550 String length must be in range (1 .. 32767)
V_PA VARCHAR2(1) :='abc'; <== error
V_PA VARCHAR2(5) :='abc';
V_DD BOOLEAN NOT NULL DEFAULT TRUE; <== fine
BEGIN
NULL;
END;
answer: A
DECLARE
V_PP VARCHAR2 :=’TEMP’;
v_MM DATE:=SYSDATE;
V_BB DATE:= SYSDATE+10;
V_CC CONSTANT NUMBER(2):=2.23;
V_DD BOOLEAN NOT NULL DEFAULT TRUE;
BEGIN
NULL;
END;
Result
Error report –
ORA-06550: linha 2, coluna 6:
Explanation:
Error report –
ORA-06550: line 2, column 12:
PLS-00215: String length constraints must be in range (1 .. 32767)
A
a
A
datatype: numeric(p,s)
Where p is a precision value; s is a scale value. For example, numeric(6,2) is a number that has 4 digits before the decimal and 2 digits after the decimal.
DECLARE
V_PA VARCHAR2 :=’a’; <== error, ORA-06550 String length must be in range (1 .. 32767)
V_PA VARCHAR2(1) :='abc'; <== error
V_PA VARCHAR2(5) :='abc';
V_DD BOOLEAN NOT NULL DEFAULT TRUE; <== fine
BEGIN
NULL;
END;
Correct answer is A.
A
What about D, line 5. NUMBER(2) means NUMBER(2,0), length 2, 0 digits after decimal point, but here 8.25 is assigned.
A is also wrong, I think AD
0.25 in line 5 will be just rounded, resulting in c_tax_rate = 8
so, the answer is A only
A
Excellent article piece. I absolutely appreciate this site . Thanks!
http://wwwcenturionwealth.com/
Awesomely done write-up. I absolutely love this site . Keep writing!
http://www.investopedia.com/advisor-network/advisors/61757/wendy-ann-payne-csa-cep-/
This is the best search system in the planet
http://google.com
are u from outside planet???
Awesomely done blog post . I certainly appreciate this site . Continue the good work!
http://firstlime.com/category/juicing/