I have this script which is obviously inefficient:
#!/bin/sh
for i in $(seq 1 10);
do
echo "CREATE TABLE testbenny_$i (id NUMBER NOT NULL);
! sleep 10
select * from testbenny_$i;
! sleep 10
select * from testbenny_$i;
! sleep 10
select * from testbenny_$i;
! sleep 10
select * from testbenny_$i;
! sleep 10
DROP TABLE testbenny_$i;" | sqlplus system/passwd &
done
I have one repetitive action I tried to enclose in a FOR loop but couldn't.
select * from testbenny_$i;
! sleep 10
I can't find the correct syntax to change it to a FOR. Working on Oracle 12.