I have 3 tables called: TableA, TableB, TPopulate
The tables: A,B have some rows i need to populare the table (TPopulate) without a Stored Procedure for Example PSEUDOCODE:
@loop1 = 1;
@loop2 = 1;
WHILE loop1 <= (Select COUNT(*) FROM TableA)
WHILE loop2 <= (Select COUNT(*) FROM TableB)
INSERT INTO TPopulate (column1, column2) VALUES (TableA.column1, TableB.column1)
END;
END;
TableA Represent (users)
TableB Represent (Privileges)
TPopulate Represent (Users_Privileges)
What I try to do is insert all privileges to all existing users.