sql數(shù)據(jù)庫(kù)建表語(yǔ)句 怎樣用SQL語(yǔ)言建立學(xué)生數(shù)據(jù)表,包括對(duì)成績(jī)的刪除、錄入、查詢?
怎樣用SQL語(yǔ)言建立學(xué)生數(shù)據(jù)表,包括對(duì)成績(jī)的刪除、錄入、查詢?--1. --創(chuàng)建一個(gè)新的數(shù)據(jù)庫(kù)xsglcreatedatabasexsgl——?jiǎng)?chuàng)建一個(gè)新表student(student informa
怎樣用SQL語(yǔ)言建立學(xué)生數(shù)據(jù)表,包括對(duì)成績(jī)的刪除、錄入、查詢?
--1. --創(chuàng)建一個(gè)新的數(shù)據(jù)庫(kù)xsglcreatedatabasexsgl——?jiǎng)?chuàng)建一個(gè)新表student(student information)usexglgocreateable student(snochar(10)notnull,namechar(8),sexchar(2)default “male”notnull,birthdaydatetime,sdeptchar(20))——?jiǎng)?chuàng)建一個(gè)名為score的表(snochar(10)notnull,cnochar(10)notnull,gradereal)--2修改和刪除字段添加插入值修改更新刪除刪除