This commit is contained in:
szabomarton 2024-10-01 10:53:52 +02:00
parent a6e454a097
commit 32ea86f388
3 changed files with 4235 additions and 6 deletions

View File

@ -34,6 +34,334 @@ CREATE TABLE eladasok(id INT AUTO_INCREMENT PRIMARY KEY, osszeg INT, eladott_men
CREATE TABLE munkaido(id INT AUTO_INCREMENT PRIMARY KEY, munkas_id INT, becsekkolas DATETIME, kicsekkolas DATETIME);
ALTER TABLE munkaido ADD FOREIGN KEY (munkas_id) REFERENCES munkas(id);
/* ADDING DATA */
INSERT INTO `beszerzes_kiadasok` VALUES
(1,'qbim',562140817),
(2,'dfaf',9),
(3,'xxue',0),
(4,'ivhd',0),
(5,'ktus',813652),
(6,'racg',56730),
(7,'euwi',682705),
(8,'kbsy',4816480),
(9,'yqaz',717072278),
(10,'fnch',0),
(11,'tbex',81028),
(12,'arvp',8349437),
(13,'zcox',778),
(14,'cfff',57),
(15,'ekzq',0),
(16,'jgkl',62),
(17,'uiwc',179),
(18,'ajzh',71),
(19,'scwf',3),
(20,'kpqb',204),
(21,'zxth',184290725),
(22,'bybk',2645),
(23,'zcpr',679657),
(24,'conl',16052),
(25,'dihd',27);
INSERT INTO `raktar` VALUES
(1,'34 ds','501 Halvorson Gardens\nNew Devynchester, WI 28325-8264'),
(2,'42 hh','33787 Kieran Knolls\nNorth Dejonhaven, OK 54485-5271'),
(3,'43 jc','3749 Anahi Groves\nHilpertbury, HI 31426'),
(4,'37 fv','327 Wisoky Viaduct\nNorth Malvina, SC 41712'),
(5,'54 wq','51674 Anderson Light Apt. 481\nRodborough, WY 20922-4425'),
(6,'96 ch','8298 Beier Camp\nDedricfurt, RI 29824-7249'),
(7,'80 fr','032 Jenkins Flat Apt. 961\nWest Addison, NH 68632'),
(8,'89 kv','34772 Daugherty Landing Suite 648\nGerardside, CO 97135'),
(9,'45 rg','2252 Lemke Mews\nSanfordchester, PA 81772-5757'),
(10,'08 oz','409 Dare Station\nMarquardtville, NH 13755-7358'),
(11,'67 rj','427 Kyla Springs\nAllisonburgh, WV 01634-5992'),
(12,'77 pk','87020 Sporer Gateway\nKirlinfurt, NJ 73718-0262'),
(13,'10 qe','225 Johns Squares Apt. 516\nSouth Terrenceport, MS 02742-8318'),
(14,'46 qp','69358 Antwon Hollow Suite 596\nNew David, NE 65499-9695'),
(15,'16 ef','2439 Colton Lodge Suite 136\nJulianaberg, NE 74904'),
(16,'93 vu','485 Stiedemann Port\nWaterschester, MA 21962-7281'),
(17,'57 kp','966 Bartholome Mills\nPort Shirleyhaven, IL 73607-0595'),
(18,'76 gq','9074 Wilkinson Club Suite 574\nEinoshire, AZ 60987-5585'),
(19,'82 pq','63618 Okey Divide Apt. 214\nPacochaville, AL 66501'),
(20,'29 mz','14378 Hahn Pines\nLoganstad, NV 09623'),
(21,'48 ip','83665 Imelda Glen\nEast Maybelleport, SD 17921-9377'),
(22,'09 ps','447 Steuber Mews Apt. 703\nWest Katharinaview, MD 12102-8280'),
(23,'72 if','798 Feest Mission\nWizaport, AR 47732'),
(24,'03 gf','400 Bernier Loaf\nCarlottaport, HI 00763'),
(25,'97 fa','585 Ilene Junction\nShannaview, AR 21616-7765');
INSERT INTO `tarnak` VALUES
(1,'71 if','95465 Alexane Springs\nNorth Carroll, IN 11189'),
(2,'95 xu','96289 Angela Locks\nLake Kendrabury, HI 78059-1992'),
(3,'66 ko','8181 Sporer Unions Apt. 545\nPort Newtonfort, TN 23417'),
(4,'90 ay','3183 Eichmann Lights\nEast Leonelview, TN 33607'),
(5,'00 nv','43381 Bartell Place Suite 665\nSouth Isabelleborough, RI 72837'),
(6,'17 kv','770 Iliana Landing Suite 138\nWest Paulinemouth, NH 68378'),
(7,'22 tb','320 Aniya Row\nWest Junius, AR 26646-0133'),
(8,'33 ph','1918 Dicki Valley\nSouth Letitiaton, NH 33294-1492'),
(9,'55 um','884 Adelle Forge\nEast Lesleyton, MN 51272'),
(10,'82 xk','240 Hardy Unions\nChandlertown, MN 20418-6636'),
(11,'12 bs','7625 Nitzsche Manors Apt. 422\nPort Alisaville, WA 15730-9206'),
(12,'58 en','262 Moore Course\nGageview, ME 26619-5607'),
(13,'00 zu','58032 Faye Trail\nSouth Eraport, MS 71463'),
(14,'04 zc','38053 Carroll Junctions\nYostshire, NY 52909'),
(15,'32 xd','27010 Jaydon Crescent Suite 425\nAhmadstad, NM 05243'),
(16,'16 hy','1102 Reggie Ports Apt. 795\nPaucekhaven, AK 91747'),
(17,'96 jc','176 Pagac Keys\nWestleyberg, CO 04607'),
(18,'81 kd','22723 Konopelski Forks\nWest Ludwighaven, OK 08193-9351'),
(19,'21 bi','53389 Noelia Loop Suite 586\nPort Charley, IL 49776'),
(20,'89 qs','8826 Adolf Mill Apt. 637\nSouth Ladarius, SD 17965'),
(21,'01 hp','985 Cole Extension Apt. 893\nWest Mitchelmouth, SC 09156-1406'),
(22,'77 va','6721 Shayna Burgs Apt. 911\nNorth Conor, IN 41266'),
(23,'54 tq','477 Ritchie Forks Suite 692\nPort Zackbury, MS 08824-4870'),
(24,'16 ld','941 Hudson Park Apt. 708\nAprilview, WA 99736'),
(25,'54 rw','6603 Moore Loop\nBodebury, VA 82700');
INSERT INTO `munkakor` VALUES
(1,'zatk'),
(2,'iifz'),
(3,'cccw'),
(4,'jnya'),
(5,'ubae'),
(6,'osre'),
(7,'zrmd'),
(8,'kqwq'),
(9,'ffqf'),
(10,'uxcz'),
(11,'maaj'),
(12,'bxbo'),
(13,'xeil'),
(14,'hnbk'),
(15,'tlzp'),
(16,'aehr'),
(17,'blmx'),
(18,'rsou'),
(19,'ivhv'),
(20,'arxw'),
(21,'mdvo'),
(22,'xodx'),
(23,'tvfp'),
(24,'ocml'),
(25,'ecad');
INSERT INTO `munkas` VALUES
(1,'Makenna Quigley','295-660-6415x317','janessa28@example.org','7187',1),
(2,'Edythe Krajcik','(375)632-6878x45558','dgutkowski@example.net','22',2),
(3,'Mr. Claude Runte V','(202)788-1701x185','zmacejkovic@example.com','15381',3),
(4,'Erica Shanahan','139-720-4809x9186','dawn.hagenes@example.com','96791',4),
(5,'Miss Marcella Kunde','(819)533-9064x7945','bratke@example.net','41884301',5),
(6,'Trudie Olson','301-901-5060x602','prudence.okeefe@example.org','8799694',6),
(7,'Muhammad Connelly','1-196-953-0374x93717','kblock@example.net','1',7),
(8,'Ms. Pattie Sauer','1-034-199-8481x64541','connie.hackett@example.com','28300463',8),
(9,'Clementina Lemke','282-702-8846x90839','rflatley@example.net','159',9),
(10,'Saige Pouros','(867)657-9063','zander21@example.org','',10),
(11,'Miss Mazie Ritchie','(457)752-8130','vbins@example.org','602',11),
(12,'Carli Cremin','1-257-489-3035x18463','ignacio.denesik@example.net','88',12),
(13,'Lisa Hudson','882-281-6532','cnader@example.net','9762',13),
(14,'Brandon Hills','254.349.4686','matilda.beier@example.com','8214',14),
(15,'Miss Brisa Gibson Sr.','1-946-116-9281x4400','dell31@example.org','8378',15),
(16,'Devyn OConnell','1-240-978-3433','precious.willms@example.com','8',16),
(17,'Loy Crona','(978)782-8313','celine32@example.org','',17),
(18,'Claudie Christiansen','(357)845-8246x966','kunde.marquise@example.com','111',18),
(19,'Dr. Tad Halvorson','096.341.6624','gisselle.bergnaum@example.com','96694618',19),
(20,'Brandt Stamm','+99(8)4805934122','greg.nienow@example.com','951',20),
(21,'Federico Jenkins','04684393504','keven94@example.org','755',21),
(22,'Shakira Kreiger','053-810-6314x1099','skiles.malinda@example.net','593013890',22),
(23,'Prof. Jewel Bauch','(746)680-8319','dakota.hudson@example.org','33',23),
(24,'Mr. Raheem Hettinger','263-771-8948','qweber@example.net','7367',24),
(25,'Sim Hahn I','+43(1)6163829381','monahan.maiya@example.org','76860243',25);
INSERT INTO `munkaido` VALUES
(1,1,'1983-08-13 17:12:39','2000-02-03 15:21:49'),
(2,2,'1975-11-19 21:22:07','2020-04-29 14:36:00'),
(3,3,'1978-08-19 15:48:56','1979-04-23 20:08:36'),
(4,4,'2024-09-16 13:32:13','1991-04-15 13:58:22'),
(5,5,'1993-11-04 04:07:53','1999-11-16 13:19:58'),
(6,6,'1973-04-06 14:08:53','2013-03-08 23:39:04'),
(7,7,'2019-08-14 13:16:19','2004-03-08 11:30:30'),
(8,8,'1981-05-08 07:27:48','2011-06-28 09:12:18'),
(9,9,'1990-10-02 11:08:48','2010-11-07 07:19:51'),
(10,10,'1976-11-23 01:44:25','1988-05-18 13:44:31'),
(11,11,'2023-01-17 00:53:04','2010-12-03 11:49:28'),
(12,12,'1997-03-13 07:58:04','1984-11-16 02:22:48'),
(13,13,'1992-04-20 09:49:45','1977-12-20 15:34:24'),
(14,14,'1990-12-01 17:38:54','2022-02-09 09:37:04'),
(15,15,'1978-05-11 14:10:04','1975-03-23 13:03:14'),
(16,16,'1990-07-31 05:39:41','1997-10-01 07:22:26'),
(17,17,'2004-01-09 07:05:03','1971-03-22 19:28:05'),
(18,18,'1999-11-19 16:00:50','1976-01-24 09:37:07'),
(19,19,'2019-03-26 23:46:35','1996-10-15 04:55:51'),
(20,20,'1973-08-11 11:51:12','2017-02-01 14:18:42'),
(21,21,'2007-05-29 22:14:31','1989-04-02 07:33:43'),
(22,22,'2001-05-24 05:07:58','2011-12-24 22:24:41'),
(23,23,'1982-12-11 04:56:11','1979-04-26 00:18:20'),
(24,24,'1991-08-19 19:51:32','1971-10-19 13:11:59'),
(25,25,'1975-12-14 13:41:37','1999-09-18 09:00:50');
INSERT INTO `fizetes` VALUES
(1,1,9776),
(2,2,2),
(3,3,3709805),
(4,4,520),
(5,5,61639209),
(6,6,4301),
(7,7,0),
(8,8,4959164),
(9,9,4402),
(10,10,9),
(11,11,13989193),
(12,12,332),
(13,13,380),
(14,14,1),
(15,15,53798838),
(16,16,744290654),
(17,17,8560),
(18,18,451),
(19,19,74071),
(20,20,876),
(21,21,0),
(22,22,8810116),
(23,23,6407),
(24,24,82209),
(25,25,74);
INSERT INTO `eszkoztipus` VALUES
(1,'11 to'),
(2,'35 sa'),
(3,'11 dh'),
(4,'40 qp'),
(5,'10 hx'),
(6,'72 hg'),
(7,'78 dp'),
(8,'94 ju'),
(9,'98 wv'),
(10,'61 pw'),
(11,'57 nv'),
(12,'18 bu'),
(13,'35 sf'),
(14,'38 ey'),
(15,'53 qv'),
(16,'54 ci'),
(17,'13 fz'),
(18,'04 ld'),
(19,'81 cn'),
(20,'66 un'),
(21,'33 hj'),
(22,'31 sd'),
(23,'84 co'),
(24,'33 vy'),
(25,'48 kr');
INSERT INTO `eszkozok` VALUES
(1,1,1,1),
(2,2,2,2),
(3,3,3,3),
(4,4,4,4),
(5,5,5,5),
(6,6,6,6),
(7,7,7,7),
(8,8,8,8),
(9,9,9,9),
(10,10,10,10),
(11,11,11,11),
(12,12,12,12),
(13,13,13,13),
(14,14,14,14),
(15,15,15,15),
(16,16,16,16),
(17,17,17,17),
(18,18,18,18),
(19,19,19,19),
(20,20,20,20),
(21,21,21,21),
(22,22,22,22),
(23,23,23,23),
(24,24,24,24),
(25,25,25,25);
INSERT INTO `eladasok` VALUES
(1,501061017,9,8026),
(2,49772624,3,767),
(3,0,8,412131),
(4,13504367,8,630977508),
(5,283950,6,4),
(6,9057,1,17965),
(7,2,2,1),
(8,35541930,1,742),
(9,55,9,880402523),
(10,0,9,345140462),
(11,75868,3,8749),
(12,152221515,9,4),
(13,246036449,2,11),
(14,67897282,2,498589502),
(15,270512695,3,65),
(16,0,2,18058),
(17,76134360,4,8906),
(18,503122,9,70),
(19,86575493,1,49586),
(20,571,6,84),
(21,256892,7,457026),
(22,661231,7,936880),
(23,0,4,43),
(24,5,2,88942747),
(25,8989,3,1881);
INSERT INTO `szallitas` VALUES
(1,1,'5860 Macejkovic Ramp',9),
(2,2,'241 Davis Circles',4),
(3,3,'1367 Ignatius Motorway Suite 056',3),
(4,4,'08700 Ratke Crossing',3),
(5,5,'3765 Giles Mountains Suite 769',9),
(6,6,'423 OConnell Fort Suite 961',4),
(7,7,'091 Kaitlin Gateway Apt. 803',5),
(8,8,'51707 Jacobi Fords',2),
(9,9,'3584 Weber Corner',4),
(10,10,'8684 Darren Plains',2),
(11,11,'09421 Sawayn Grove',6),
(12,12,'8228 Adalberto Keys Suite 582',6),
(13,13,'696 Nedra Islands Apt. 259',5),
(14,14,'58672 Lavina Roads Suite 493',5),
(15,15,'0089 Kunze Forest',5),
(16,16,'93361 Destin Island Apt. 381',2),
(17,17,'040 Eichmann Shoal Suite 802',6),
(18,18,'5780 Windler Highway Apt. 196',7),
(19,19,'73137 Koelpin Island',9),
(20,20,'9211 Graham Station Suite 965',3),
(21,21,'2066 Fiona Station',1),
(22,22,'1970 Blick Meadows Suite 767',9),
(23,23,'3315 Verda Lodge Suite 781',7),
(24,24,'5427 Monica Points',1),
(25,25,'7526 Konopelski Road',6);
INSERT INTO `napitermeles` VALUES
(1,1,59710503),
(2,2,10),
(3,3,655),
(4,4,70316),
(5,5,52666347),
(6,6,822340504),
(7,7,208),
(8,8,0),
(9,9,0),
(10,10,56836),
(11,11,419),
(12,12,767970346),
(13,13,9793420),
(14,14,15022219),
(15,15,4),
(16,16,32931),
(17,17,8),
(18,18,729),
(19,19,763212020),
(20,20,71739),
(21,21,0),
(22,22,927624),
(23,23,58),
(24,24,5576427),
(25,25,144806190);
/*ADDING THAT DATA ENDS HERE*/
ALTER TABLE beszerzes_kiadasok ADD macska_neve VARCHAR(255);

View File

@ -54,12 +54,13 @@ allampolgarsagok = ["Amerikai", "Kanadai", "Brit", "Francia", "Német", "Olasz",
def tablak_insert(tablaTartalomTomb, tablaNev):
with open('kimenet.txt', 'a', encoding='utf-8') as celfajl:
for tabla in tablak:
for oszlop in oszlopok:
for i in range(record_number):
if oszlop == tablaNev:
#print(f"INSERT INTO {tabla} ({oszlop}) VALUES ('{random.choice(tablaTartalomTomb)}');")
print(f"UPDATE {tabla} SET {oszlop} = '{random.choice(tablaTartalomTomb)}' WHERE id={i + 1};")
print(f"UPDATE {tabla} SET {oszlop} = '{random.choice(tablaTartalomTomb)}' WHERE id={i + 1};", file=celfajl)
tablak_insert(macska_nevek, "macska_neve")
tablak_insert(macska_fajtak, "macska_fajta")

3900
kimenet.txt Normal file

File diff suppressed because it is too large Load Diff