If you just want to increment the ID from 1 to 1, you can do a Stored Procedure(command set) with a while and the Insert.
For example:
CREATE TABLE tbCliente(
id int NOT NULL AUTO_INCREMENT,
numero int,
nome varchar(50),
PRIMARY KEY(id)
);
DELIMITER $$
DROP PROCEDURE IF EXISTS myProc$$
CREATE PROCEDURE myProc()
BEGIN
DECLARE i INT default 1;
WHILE i<=100 DO
INSERT INTO tbCliente(nome,numero) values ('Nomes',i);
SET i=i+1;
END WHILE;
END$$
DELIMITER ;
call myProc();
With this code the i value in each Insert from 1 to 100 will be increased by 1, where 'i' refers to the field 'number' of the table tbClient.
The DELIMITER where it says for sql, where the Procedure code starts and ends.
call muProc() will run your past, then it is only necessary to select to see if everything went right.
Remember to run DELIMITER$$ with Procedure and then DELIMITER; along with call myproc().
which version of oracle?
– Marllon Nasser
@Marllonnasser 11g
– George Wurthmann