MySQL: How to UPDATE and DELETE data from a TABLE

  Рет қаралды 76,071

Bro Code

Bro Code

Күн бұрын

Пікірлер: 50
@BroCodez
@BroCodez Жыл бұрын
UPDATE employees SET hourly_pay = 10.25 WHERE employee_id = 6; SELECT * FROM employees; DELETE FROM employees WHERE employee_id = 6; SELECT * FROM employees;
@ognjenstevic8637
@ognjenstevic8637 Жыл бұрын
I had a problem whit this, I got the following message: "Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column. To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect. 0.000 sec 15:41:22 UPDATE employees SET hourly pay = 10.25 WHERE employee_id = 6 Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column. To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect." That can be fixed by using the following sentence -> "SET SQL_SAFE_UPDATES = 0;". Have a nice day!
@just-a-weeb4822
@just-a-weeb4822 10 ай бұрын
Thank you bro🗿💪
@gamerslog4135
@gamerslog4135 Жыл бұрын
If I just waited until the very end, I wouldn't have had to delete my entire TABLE and start again. I accidentally created 2 of the exact same because I did have the SELECT * FROM employees; after creating VALUE (3, "Me", "You", 50.00, "2020-02-28"); so I had 2 copies of it. Could not figure out how to delete it since I could not call on it since it had an exact copy. If I waited, I could have only had to delete 2 rows instead of all 8. Thank you for making these! Make's learning a hell of a lot easier. You're a life saver and a wizard!
@samuraychik111
@samuraychik111 8 ай бұрын
update functioin is not working You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column. To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect. 0.000 sec
@vinalpawar7488
@vinalpawar7488 Ай бұрын
Thanks 🙇‍♂
@jenshardervingaardlarsen6180
@jenshardervingaardlarsen6180 10 ай бұрын
Great stuff, but why is Plankton only paid 10.50 and Sandy 17? He has experience running a fast food restaurant. As far as I know Sandy is just a scientist. 😅
@elliotradley4370
@elliotradley4370 Жыл бұрын
Legit the greatest channel for tutorials, keep up the excellent work bro
@anayasarintayn6568
@anayasarintayn6568 3 ай бұрын
u really help alot! thanks to u im not failing in IT!
@derman447
@derman447 Жыл бұрын
Hey bro, love your videos ! I was wondering if you could make a tutorial series on OpenGL in C++, i know there's a lot of those on youtube but that would be really cool if it was explained by you. I don't mind if you can't, but that would be really appreciated.
@rahulsaibanala8291
@rahulsaibanala8291 8 ай бұрын
daamn i just deleted all the rows 🤦‍♂, should have waited.
@saimoomsikto9383
@saimoomsikto9383 Жыл бұрын
why cant you use "modify" or "alter" to update or delete data?
@BigMitchell1
@BigMitchell1 10 ай бұрын
This helped my guy. Thanks!
@ToughNevyHacSoc
@ToughNevyHacSoc Жыл бұрын
Hey bro, I'd be really really really appreciate if you create a video on how we can build an analog clock in java
@MeuTube
@MeuTube Жыл бұрын
Hello bro! Hope you are doing amazing. We are patiently waiting for a React course. Thanks in advance.
@recon6660
@recon6660 Жыл бұрын
love your contents always.
@PanktiParmar-nt2rl
@PanktiParmar-nt2rl 25 күн бұрын
If all hourly pay is changed to 10.25 then how to undo it so that we can get the original hourly pay of the employees
@markkariuki8354
@markkariuki8354 Жыл бұрын
after deleting the data from the table how did u regain the data
@elizataylor19
@elizataylor19 3 ай бұрын
Im a beginner , incidentally made null values in employee_id column for all, how do i replace them with number values. Thanks anyone who hleps
@houdahammachi9240
@houdahammachi9240 Ай бұрын
update fonction is not working SET SQL_SAFE_UPDATES = 0; disable safe update
@cppandjavaandkotlindev
@cppandjavaandkotlindev Жыл бұрын
hey bro i wonder if you could do a rust full course i know theres other rust courses but they are ba and they skip to complex things so i wonder if you can make one
@computerengineercemberkcra3490
@computerengineercemberkcra3490 Жыл бұрын
You are a legend thanks
@xudayfitechoffiaicl5125
@xudayfitechoffiaicl5125 Жыл бұрын
Thanks teacher
@kamal9294
@kamal9294 Жыл бұрын
Thank you bro
@v4porwave803
@v4porwave803 4 ай бұрын
pov: how plankton villain arc started
@MP-me5vl
@MP-me5vl Жыл бұрын
It does not work for me. I need help please
@kaviyasekar2578
@kaviyasekar2578 Жыл бұрын
Do a tutorial on Android studio using java pls
@OliviaChen0806
@OliviaChen0806 Жыл бұрын
First Finally🎉
@ahamedshathelegend1409
@ahamedshathelegend1409 Жыл бұрын
for the algorithm #youtubevideos. #youtubemusic. #youtubechannel. #video. #live. #youtubecreator. #subscribe. #viral.
@somethong_alone
@somethong_alone Жыл бұрын
I want to delete full column .... Plzzzzz give a keyword or somthing
@onenobu4945
@onenobu4945 18 сағат бұрын
Tried this and I get ''invalid syntax near "WHERE"
@cppandjavaandkotlindev
@cppandjavaandkotlindev Жыл бұрын
hey bro i wonder if you could do a rust full course i know theres other rust courses but they are ba and they skip to complex things so i wonder if you can make one
@emrebilen1395
@emrebilen1395 Ай бұрын
"alter table employees add primary key (userid)" use this for safe update error. But userid must include all unique and not null values.
@IrfanKhan-bk8jy
@IrfanKhan-bk8jy Жыл бұрын
Bro i'm getting error "You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column. To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect." while using the update command somebody please help.
@mnsvn
@mnsvn Жыл бұрын
it literally says what to do in the error lol
@MrGessio
@MrGessio Жыл бұрын
do what it says and then close and open again the mysql workbench
@dhineshkumar2044
@dhineshkumar2044 10 ай бұрын
go to edit -> preferences -> sql Editor -> lastly you see the dialog box for SAFE UPDATES(rejects UPDATEs AND DELETEs with no restrictions) -> unclick the dialog box close the mySQL workbench -> open the mySQL workbench again -> Run the code and it works simple
@wolfethegamer8102
@wolfethegamer8102 5 ай бұрын
@@dhineshkumar2044 Thank you this help so much!
@dhineshkumar2044
@dhineshkumar2044 5 ай бұрын
@@wolfethegamer8102 no worries bro
@TranXuanDucPH
@TranXuanDucPH Ай бұрын
23:08:34 UPDATE employees SET hourly_pay = 10.50 , hire_date = "2023-01-06" WHERE employee_id = 4 Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column. To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect. 0.000 sec
@arsenart648
@arsenart648 24 күн бұрын
you can use the: SET SQL_SAFE_UPDATES = 0; run it > do whatever cahnge you want BUT in the end of your work set it back to 1 since it is a useful safe barrier SET SQL_SAFE_UPDATES = 1;
@jenis-01
@jenis-01 Жыл бұрын
Please can you make C++ Data structures video like for Java?? Please!!!!!!!!!! You explain so good
@SaA-nm1op
@SaA-nm1op 5 ай бұрын
straight to the point . i love it
@OpinionOfX
@OpinionOfX Жыл бұрын
Ravish kumar official
@juneroyd.quinimon495
@juneroyd.quinimon495 Жыл бұрын
Thank you it really helps me a lot!
@lunivers2135
@lunivers2135 Жыл бұрын
thank you Bro Code😊
@andredubbs4854
@andredubbs4854 Жыл бұрын
hey bro, great video as per usual. thanks alot!
@Harzit
@Harzit Жыл бұрын
Bro, you da best
@amniat762
@amniat762 8 ай бұрын
i love bro code
@muhammaddiymurodov9112
@muhammaddiymurodov9112 Жыл бұрын
hello bro code, your code is not working! from c lessons (string functions) ; #include #include int main(){ char string1[] = "Bro"; char string2[] = "Code"; strlwr(string1); // converts a string to lowercase //strupr(string1); // converts a string to uppercase //strcat(string1, string2); // appends string2 to end of string1 //strncat(string1, string2, 1); // appends n characters from string2 to string1 //strcpy(string1, string2); // copy string2 to string1 //strncpy(string1, string2, 2); // copy n characters of string2 to string1 //strset(string1, '?'); //sets all characters of a string to a given character //strnset(string1, 'x', 1); //sets first n characters of a string to a given character //strrev(string1); //reverses a string //int result = strlen(string1); // returns string length as int //int result = strcmp(string1, string2); // string compare all characters //int result = strncmp(string1, string2, 1); // string compare n characters //int result = strcmpi(string1, string1); // string compare all (ignore case) //int result = strnicmp(string1, string1, 1); // string compare n characters (ignore case) printf("%s", string1); /* if(result == 0) { printf("These strings are the same"); } else { printf("These strings are not the same"); } */ return 0; } it says: strlwr(string1); // converts a string to lowercase | ^~~~~~ | strstr stringFucntions.c:6:9: warning: unused variable 'string2' [-Wunused-variable] 6 | char string2[] = "Code"; | ^~~~~~~ pls help
MySQL: AUTOCOMMIT, COMMIT, ROLLBACK
2:38
Bro Code
Рет қаралды 85 М.
MySQL: TRIGGERS
16:50
Bro Code
Рет қаралды 118 М.
Bike Vs Tricycle Fast Challenge
00:43
Russo
Рет қаралды 97 МЛН
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 242 МЛН
когда не обедаешь в школе // EVA mash
00:57
EVA mash
Рет қаралды 3,1 МЛН
5 JavaScript Concepts You HAVE TO KNOW
9:38
James Q Quick
Рет қаралды 1,4 МЛН
JWT авторизация. Основы JWT - механизма.
6:45
Хочу вАйти
Рет қаралды 10 М.
Build this JS calculator in 15 minutes! 🖩
15:20
Bro Code
Рет қаралды 568 М.
15 futuristic databases you’ve never heard of
8:42
Fireship
Рет қаралды 677 М.
MySQL: How to INSERT rows into a TABLE
5:54
Bro Code
Рет қаралды 115 М.
7 Database Paradigms
9:53
Fireship
Рет қаралды 1,6 МЛН
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,2 МЛН
MySQL: JOINS are easy (INNER, LEFT, RIGHT)
5:04
Bro Code
Рет қаралды 407 М.
Bike Vs Tricycle Fast Challenge
00:43
Russo
Рет қаралды 97 МЛН