Yes, with "colX" I am referring to the name of your "Column X".
You can update all rows in a table when you leave the WHERE clause away:
UPDATE mytable SET col1=123, col2=456;
Aye, I can update all tables or all rows easily, but I cannot figure out how to update them if they're different. Let me explain:
They're a total of 16 classes in EverQuest. They are a total of 77 skills. With that said, Class 1 / Skill 1 might be 0. Class 2 / Skill 1 might be 5. Class 3 / Skill 1 might be 10. Class 4 / Skill 1 might be 15 and so on. So, I cannot just change the class and the same line work, I have to actually find the exact value and alter the entire query on each class.
I was just wanting to be able to change the class and have it change the value of whichever one I'm altering at the time no matter what the skill value is.
UPDATE peq.skill_caps SET skillID = '33' AND class = '8' AND level = '41' AND cap = '205' WHERE skillID = '33' AND class = '8' AND level = '41' AND cap = '';
^ This line works, however I do have to know the EXACT value of cap each time, now imagine 100 lines (each level from 1-100) and 77 skills. I mean if I have to actually modify every line each time, what is the point?
I just delete all 100 lines of the skill and use this (Below) to re-enter it each time, it's much easier and faster than trying to UPDATE what is already there, unless they were a way to do it no matter what value cap is.
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 1, 5);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 2, 10);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 3, 15);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 4, 20);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 5, 25);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 6, 30);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 7, 35);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 8, 40);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 9, 45);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 10, 50);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 11, 55);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 12, 60);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 13, 65);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 14, 70);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 15, 75);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 16, 80);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 17, 85);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 18, 90);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 19, 95);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 20, 100);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 21, 105);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 22, 110);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 23, 115);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 24, 120);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 25, 125);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 26, 130);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 27, 135);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 28, 140);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 29, 145);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 30, 150);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 31, 155);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 32, 160);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 33, 165);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 34, 170);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 35, 175);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 36, 180);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 37, 185);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 38, 190);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 39, 195);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 40, 200);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 41, 205);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 42, 210);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 43, 215);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 44, 220);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 45, 225);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 46, 230);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 47, 235);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 48, 240);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 49, 245);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 50, 250);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 51, 255);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 52, 260);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 53, 265);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 54, 270);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 55, 275);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 56, 280);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 57, 285);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 58, 290);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 59, 295);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 60, 300);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 61, 305);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 62, 310);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 63, 315);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 64, 320);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 65, 325);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 66, 330);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 67, 335);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 68, 340);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 69, 345);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 70, 350);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 71, 355);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 72, 360);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 73, 365);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 74, 370);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 75, 375);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 76, 380);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 77, 385);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 78, 390);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 79, 395);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 80, 400);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 81, 405);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 82, 410);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 83, 415);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 84, 420);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 85, 425);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 86, 430);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 87, 435);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 88, 440);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 89, 445);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 90, 450);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 91, 455);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 92, 460);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 93, 465);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 94, 470);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 95, 475);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 96, 480);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 97, 485);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 98, 490);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 99, 495);
INSERT INTO peq
.skill_caps
(skillID
, class
, level
, cap
) VALUES (32, 8, 100, 500);
This will input the skill I want just by changing the skillID (0-77) and class (1-16).
But be aware this updates all rows in your table.