MySQL: How to create a TABLE

MySQL: How to create a TABLE

Bro Code

1 год назад

188,309 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Bro Code
Bro Code - 09.10.2022 18:56

CREATE TABLE employees (
employee_id int,
first_name VARCHAR(50),
last_name VARCHAR(50),
hourly_pay DECIMAL(5, 2),
hire_date DATE

);

SELECT * FROM employees;

RENAME TABLE employees TO workers;

DROP TABLE employees;

ALTER TABLE employees
ADD phone_number VARCHAR(15);

ALTER TABLE employees
RENAME COLUMN phone_number TO email;

ALTER TABLE employees
MODIFY COLUMN email VARCHAR(100);

ALTER TABLE employees
MODIFY email VARCHAR(100)
AFTER last_name;

ALTER TABLE employees
MODIFY email VARCHAR(100)
FIRST;

ALTER TABLE employees
DROP COLUMN email;

Ответить
Technology
Technology - 30.09.2023 04:25

hey bro code
i'm trying to tape the same scrito but i get this error:
''Error Code: 1046. No database selected Select the default DB to be used by double-clicking its name in the SCHEMAS list in the sidebar.''

how to solve it please

Ответить
Anu Awathare
Anu Awathare - 13.09.2023 21:57

Hello sir,
I'm glad that i found your channel to learn SQL. I'm completely new to this subject.
i came across an error while creating a table column (" hourly pay decimal(5,1)"). could you please clarify?

Ответить
Dewald Schuler
Dewald Schuler - 08.09.2023 10:54

I completely forgot how to do MySQL, after a year of not taking a subject that utilizes it.
Now I suddenly have an assignment due by midnight. So I just quickly needed a refresher.
Thank you for providing a short and to-the-point tutorial.

Ответить
Henok Tademe
Henok Tademe - 08.08.2023 20:39

Just wow❤

Ответить
Torpedoe1
Torpedoe1 - 01.07.2023 13:37

Legendary !

Ответить
KrAyOnS1
KrAyOnS1 - 15.06.2023 12:39

The Modify clause isnt working. It does'nt highlight or anthing like ALTER or SELECT, almost as if mysql is reading it as normal txt. Anyone else has this problem?

Ответить
Pratik Thorat
Pratik Thorat - 01.05.2023 09:11

For numbers suppose if this is a real life job scenario, do we still use VARCHAR as a data type or is there any alternative to add larger numbers in a database? Like in Java you can use double or even long so is there something similar?

Ответить
Tenebrae
Tenebrae - 24.03.2023 17:07

👍👍

Ответить
DejasBeautyXoxo
DejasBeautyXoxo - 15.03.2023 02:29

you are out here doing the LORD'S WORK THANK YOU!!!!!!!!

Ответить
The Gamer And Informator
The Gamer And Informator - 12.03.2023 16:39

Astrix is also known as star. <--- In simple words,

Ответить
Hola Soy German
Hola Soy German - 29.12.2022 05:06

thanks bro

Ответить
Gamers Log
Gamers Log - 06.11.2022 08:26

Your teaching methods are to the point, full of information, but can be easily and clearly understood. Thank you so much!

Ответить
Lykkos
Lykkos - 22.10.2022 04:05

what a chad you are bro!!!

Ответить
James Cloud
James Cloud - 21.10.2022 08:37

Why make things complicated using this SQL when companies can use excel and Microsoft access?

Ответить
souraj basak
souraj basak - 18.10.2022 13:17

sir thr was error in install the key ring pugin plss hlp

Ответить
Freak_Games
Freak_Games - 14.10.2022 15:30

bro ur beast in teaching

Ответить
Thợ Săn
Thợ Săn - 12.10.2022 17:44

More SQL please sir

Ответить
HiraHana (ひらはな)
HiraHana (ひらはな) - 11.10.2022 07:25

FINALLYYYYY, here's a series for SQL. Thanks a lot Bro!

Ответить
Cing Lam Thang
Cing Lam Thang - 10.10.2022 19:43

Bro or Sir please upload REACTJS full course

Ответить
Global Web
Global Web - 10.10.2022 11:30

React Js please!

Ответить
Global Web
Global Web - 10.10.2022 11:29

React Js please!

Ответить
Raheem G
Raheem G - 10.10.2022 10:35

SQL, sweet. Maybe react or firebase tutorials in the future.

Ответить
Infinite G
Infinite G - 10.10.2022 01:23

Please create a full tutorial on rust

Ответить
YS1 TM
YS1 TM - 10.10.2022 00:40

yo bro can u teach us php because im strugling with it ❤

Ответить
Andre dubbs
Andre dubbs - 10.10.2022 00:32

hey bro, its so nice seeing you cover sql, an incredibly important language. thanks alot and keep the vids coming!!

Ответить
i'm hungry
i'm hungry - 10.10.2022 00:30

stop giving me exactly what I need for tomorrow every time its getting creepy .

Ответить
Mils D
Mils D - 09.10.2022 23:30

Broilliant vid as usual.

Clear and and easy to follow.

Thanks Bro

Ответить
Lahcen Aouina
Lahcen Aouina - 09.10.2022 22:16

bro i love u ur amazing

Ответить
kin.1997
kin.1997 - 09.10.2022 22:08

yes pleaaaase full SQL tutorial

Ответить
Eskil
Eskil - 09.10.2022 21:38

Ty bro

Ответить
Om
Om - 09.10.2022 21:17

Hey bro, love your videos!!
Would you consider making NoSQL,GIT/GITHUB,Linux terminal videos in the near future?

Ответить
WolfDare 19
WolfDare 19 - 09.10.2022 20:25

Crazy how you post this the same week as I start with SQL. Thanks a lot.

Ответить
Mummahad Arsal
Mummahad Arsal - 09.10.2022 20:23

bro u are just awesome

Ответить
The Avid African
The Avid African - 09.10.2022 20:20

Bro code!

Ответить
muhammad shadab ahmed
muhammad shadab ahmed - 09.10.2022 19:55

Code king 👑 bro code

Ответить
SIStefanov
SIStefanov - 09.10.2022 19:31

Bro, you are awesome, bro!

Ответить
Aman Singh
Aman Singh - 09.10.2022 19:25

good to see u again

Ответить
Programmer Dev
Programmer Dev - 09.10.2022 19:22

We want courses in cyber security and ethical hacking

Ответить
SplashAni
SplashAni - 09.10.2022 19:18

thenks bro 🤔

Ответить
Shamsaba
Shamsaba - 09.10.2022 19:18

reallyyyy happy to see you back again🥺🥺

Ответить
SpaceX 69
SpaceX 69 - 09.10.2022 19:13

I did not know that Mr Krabs had a first name.

Ответить
Kaustubh 1999
Kaustubh 1999 - 09.10.2022 19:13

thank you so much bro code I'm your handicap student

Ответить
Tru7h
Tru7h - 09.10.2022 19:09

THANKS A LOT KING

Ответить
Yassine Brono
Yassine Brono - 09.10.2022 19:07

Top top top

Ответить
Impo
Impo - 09.10.2022 19:04

I’m a regular visitor on this channel hahaha

Ответить
Vishesh Mukherjee
Vishesh Mukherjee - 09.10.2022 19:02

Thank you!!

Ответить
Adeeb YEC
Adeeb YEC - 09.10.2022 18:55

SQL

Ответить