I tried to create external insert procedure.
Everything looks fine(without errors) except that actually it's now working.
Procedure is not inserting any rows.
Code: Select all
#!/bin/bash
echo "first arg: $1 second arg : $2"
for i in {1..5}
do
vsql -c "insert into testext select RANDOMINT($1 - (1) + 1) + (1), '$2';"
echo "Inserted"
done
vsql -c "commit;"
exit 0
As I have read so far. It is not possible to create procedure inside vertica right ? For example something like
Code: Select all
CREATE OR REPLACE PROCEDURE insertpd(userid IN USER.USER_ID%TYPE)
IS
BEGIN
INSERT INTO DBUSER ("USER_ID") VALUES (userid);
COMMIT;
END;