PhantoMPaiN

0x00 What we have learned yesterday?
We\'ve learned what is SQL and it\'s main features.
We\'ve also learned how to create a new database and select it.

Then today we will learn some basic concept like tables,rows,columns,etc.

0x01 create a table
Why should we create a table? Because we must make a structure for the database. When we create a database, it\'s empty, we must define some structure for it to make it sensitive.
So now I want to store my basic information into the database, I\'m gonna to create a new table:
CREATE TABLE christopherwu(name VARCHAR(20),sex CHAR(1),id VARCHAR(10),birth DATE);
like this.
I must make a explanation about varchar: the values\' length in varchar is changeable. It\'s more flexible than char.

This is a example:

So we successfully created a table!

Fuck I need to write mt EDA experiment export,
so this is what we learned today XD.

分类:

技术点:

相关文章:

  • 2021-07-28
  • 2021-10-31
  • 2021-07-07
  • 2021-09-22
  • 2022-12-23
  • 2021-09-29
  • 2022-01-27
  • 2021-07-25
猜你喜欢
  • 2022-12-23
  • 2021-11-26
  • 2021-06-11
  • 2022-01-11
  • 2022-12-23
  • 2021-09-01
相关资源
相似解决方案