+ 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

3rd Mar 2018, 4:03 PM
Nico Orfa
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
3rd Mar 2018, 4:56 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 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 â˜ș👍
3rd Mar 2018, 5:13 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 1
Okay, but how do you create the different columns and the data entry?
3rd Mar 2018, 5:08 PM
Nico Orfa
+ 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
3rd Mar 2018, 5:22 PM
Nico Orfa