自學(xué)sql容易嗎 怎樣用SQL語言建立學(xué)生數(shù)據(jù)表,包括對成績的刪除、錄入、查詢?
怎樣用SQL語言建立學(xué)生數(shù)據(jù)表,包括對成績的刪除、錄入、查詢?--1. --新建數(shù)據(jù)庫xsglcreatedatabasexsgl——新建表student(student information)us
怎樣用SQL語言建立學(xué)生數(shù)據(jù)表,包括對成績的刪除、錄入、查詢?
--1. --新建數(shù)據(jù)庫xsglcreatedatabasexsgl——新建表student(student information)usexglgocreateable student(snochar(10)notnull,namechar(8),sexchar(2)default “male”notnull,birthdaydatetime,sdeptchar(20))——創(chuàng)建表score(snochar(10)notnull,cnochar(10)notnull,gradereal)——2修改和刪除字段,添加插入到橢圓中使用,修改updatea,刪除drop
1。我們打開新的SQL查詢。
2. 我們建了一個叫學(xué)生的桌子。
3. 我們輸入學(xué)生編號和姓名,類型由字符表示。
4. 我們輸入性別、年齡和專業(yè),并用適當(dāng)?shù)念愋投x它們。
5. 在這個時候,我們跟隨執(zhí)行。
6. 我們可以看到系統(tǒng)顯示表創(chuàng)建成功。