


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A step-by-step guide on how to create and manipulate tables and records in mysql using mysql workbench and sql commands. Topics covered include creating databases, defining table structures, inserting records, updating records, and deleting records. It also includes information on data types such as int, varchar, date, time, and datetime.
Typology: Study Guides, Projects, Research
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Xampp>mysql, apache server start Mysql workbench, connection-open Database programming language, database manipulation, SQL Dbms-mysql Mysql>database>tables>records SHOW DATABASES; DROP DATABASES; CREATE DATABASE big_mart;
USE big_mart; CREATE TABLE USERS( (indentation here) id INT UNSIGNED PRIMARY KEY AUTO_INCREMENT, name VARCHAR(100), email VARCHAR(200) NOT NULL, username VARCHAR(100), password VARCHAR(255) )engine=innodb; show tables; describe users; drop table users; (deleting tables) insert into users(id,name,email,username,password) values(1,'Ram','[email protected]','Admin','netscape'); select *from users; select id, name from users; delete from users where id=1; (deleting a column) truncate table users; (deleting all columns at once) update students SET first_name=’sabjan’ WHERE id=1; alter table students ADD COLUMN address varchar(255); alter table students DROP COLUMN address;
)engine=innodb; à allows you to add relationship with the foreign key data types: