Write a PL/SQL block to insert data to a table using character type variable.
PL/SQL Code:
DROP TABLE test; CREATE TABLE test (col1 CHAR(5)); DECLARE var1 VARCHAR2(5 CHAR) := 'abc '; BEGIN INSERT INTO test(col1) VALUES(var1); END; /
Sample Output:
PL/SQL procedure successfully completed.
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
PL/SQL Code:
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer