CREATE TABLE test_table (kolon VARCHAR2 (100));
DECLARE
v_sql VARCHAR2 (1000);
v_test_table VARCHAR2 (30) := ‘test_table’;
v_test_value VARCHAR2 (100) := ‘test value’;
BEGIN
v_sql := ‘INSERT INTO ‘ || v_test_table || ‘ values (:value)’;
EXECUTE IMMEDIATE v_sql USING v_test_value;
END;
v_sql VARCHAR2 (1000);
v_test_table VARCHAR2 (30) := ‘test_table’;
v_test_value VARCHAR2 (100) := ‘test value’;
BEGIN
v_sql := ‘INSERT INTO ‘ || v_test_table || ‘ values (:value)’;
EXECUTE IMMEDIATE v_sql USING v_test_value;
END;
0 yorum:
Yorum Gönder