db_testdata #21

Merged
vex merged 6 commits from db_testdata into develop 2025-02-27 10:18:37 +00:00
2 changed files with 5 additions and 7 deletions
Showing only changes of commit 6681b29d51 - Show all commits

View File

@ -20,5 +20,4 @@ drop table if exists user;
drop table if exists user_address;
drop table if exists user_payment;
drop table if exists user_payment;

View File

@ -1,8 +1,9 @@
CREATE PROCEDURE prepare_data()
CREATE PROCEDURE fill_user_table()
BEGIN
DECLARE i INT DEFAULT 1;
DECLARE emailString CHAR(16) DEFAULT 'test';
DELETE FROM webshop.user;
WHILE i < 100
DO
@ -10,7 +11,5 @@ BEGIN
INSERT INTO webshop.user(is_active, name, lower_name, email)
VALUES ('1', 'harry', 'potter', emailString);
SET i = i + 1;
end while;
end;
#CALL prepare_data();
END WHILE;
END;