+ 2
How to create tables in SQL?
The class doesn't go into this topic, it teaches you the operations between tables but it doesn't teach you how to create one from the beginning and how to load the data
4 Answers
+ 16
hey buddy , before creating table ... u either need to open an existing databse or create a new database & after that u can create tables inside it
create database sololearn;
use sololearn;
create table sql(plyrid varchar(10),playnam varchar (20));
//I made lesson for that , hope will be approved
+ 12
for that u need to use Insert command
for example ::: //i am adding 2 records
//take reference from mine above comment
Insert into sql values ("a01","Gaurav");
Insert into sql values ("a02",Nico");
//to see records available
select * from sql;
//to see structure of table sql
DESC sql;
//or
DESCRIBE sql;
//hope it helps āŗš
+ 1
Okay, but how do you create the different columns and the data entry?
+ 1
Thanks, it helped me a lot, but I wish there would be a topic in the SQL class so I could learn it all together